some more linter fixes
authorChristian Pointner <equinox@realraum.at>
Sun, 23 Dec 2018 13:49:41 +0000 (14:49 +0100)
committerChristian Pointner <equinox@realraum.at>
Sun, 23 Dec 2018 13:49:41 +0000 (14:49 +0100)
.travis.yml
ansible/roles/openwrt/image/tasks/fetch.yml
ansible/roles/openwrt/image/tasks/main.yml
ansible/roles/openwrt/image/tasks/prepare.yml
ansible/roles/preseed/tasks/main.yml
ansible/roles/reboot-and-wait/tasks/main.yml

index a6c6d12..6a90aab 100644 (file)
@@ -18,7 +18,9 @@ install:
   - ansible-lint --version
 
 script:
-  - pushd ./ansible; ansible-lint _lint_roles.yml; popd
+  - pushd ./ansible
+  - ansible-lint _lint_roles.yml
+  - popd
   - make -C doc
 
 deploy:
index f68c87d..66a5657 100644 (file)
@@ -48,5 +48,7 @@
         - "{{ 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
index 1781d9e..92e36c8 100644 (file)
@@ -11,7 +11,8 @@
         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(' ') }}
index 3414371..887143d 100644 (file)
@@ -4,7 +4,8 @@
     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"
 
@@ -83,7 +84,8 @@
     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 }}"
index 51471c5..bd2a882 100644 (file)
@@ -8,6 +8,7 @@
   template:
     src: "preseed_{{ install_distro }}-{{ install_codename }}.cfg.j2"
     dest: "{{ preseed_tmpdir }}/preseed.cfg"
+  register
 
 - name: Generate authorized_keys file
   authorized_key:
@@ -23,3 +24,5 @@
     stdin: |
       preseed.cfg
       authorized_keys
+  tags:
+  - skip_ansible_lint
index e648f0a..18ae270 100644 (file)
@@ -3,6 +3,8 @@
   async: 1
   poll: 0
   ignore_errors: true
+  tags:
+  - skip_ansible_lint
 
 - name: waiting for host to come back
   wait_for_connection: