- ansible-lint --version
script:
- - pushd ./ansible; ansible-lint _lint_roles.yml; popd
+ - pushd ./ansible
+ - ansible-lint _lint_roles.yml
+ - popd
- make -C doc
deploy:
- "{{ openwrt_download_dir }}/{{ openwrt_tarball_basename }}.sha256"
- "{{ openwrt_download_dir }}/{{ openwrt_tarball_basename }}.sha256.asc"
- "{{ openwrt_download_dir }}/{{ openwrt_tarball_name }}"
- - fail:
+
+ - name: the download has failed...
+ fail:
msg: Something borked
path: "{{ openwrt_output_dir }}"
state: directory
- - set_fact:
+ - name: generate list of packages to add or remove
+ set_fact:
openwrt_packages: >-
{{ openwrt_packages_remove | map('regex_replace', '^', '-') | join(' ') }}
{{ openwrt_packages_add | join(' ') }}
state: directory
register: tmpdir
-- set_fact:
+- name: set variables needed to build images
+ set_fact:
openwrt_imgbuilder_dir: "{{ tmpdir.path }}"
openwrt_imgbuilder_files: "{{ tmpdir.path }}/files"
trim_blocks: yes
when: openwrt_groups is defined or openwrt_users is defined
-- unarchive:
+- name: extract image builder tarball
+ unarchive:
copy: False
src: "{{ openwrt_download_dir }}/{{ openwrt_tarball_name }}"
dest: "{{ openwrt_imgbuilder_dir }}"
template:
src: "preseed_{{ install_distro }}-{{ install_codename }}.cfg.j2"
dest: "{{ preseed_tmpdir }}/preseed.cfg"
+ register
- name: Generate authorized_keys file
authorized_key:
stdin: |
preseed.cfg
authorized_keys
+ tags:
+ - skip_ansible_lint
async: 1
poll: 0
ignore_errors: true
+ tags:
+ - skip_ansible_lint
- name: waiting for host to come back
wait_for_connection: