diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2021-12-08 19:19:17 +0000 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2021-12-09 16:43:04 +0000 |
commit | 38016dce730790f1014456951b13a22ea6f0d64f (patch) | |
tree | b7314dbbf1bed20c65319c31d0e5e348c60810d1 | |
parent | 9bc88d9a98cc3e6d5df23a97d7492215a1a2a1e3 (diff) | |
download | rules-38016dce730790f1014456951b13a22ea6f0d64f.tar.gz |
ansible-lint: Ignore galaxy and various changed hooks
-rw-r--r-- | .ansible-lint | 2 | ||||
-rw-r--r-- | playbooks/prerequisites.yml | 2 | ||||
-rw-r--r-- | roles/vmm/tasks/autoinstall_configuration.yml | 1 | ||||
-rw-r--r-- | roles/vmm/tasks/network.yml | 4 |
4 files changed, 7 insertions, 2 deletions
diff --git a/.ansible-lint b/.ansible-lint new file mode 100644 index 0000000..4930268 --- /dev/null +++ b/.ansible-lint @@ -0,0 +1,2 @@ +skip_list: + - meta-no-info diff --git a/playbooks/prerequisites.yml b/playbooks/prerequisites.yml index ac4d58d..3178164 100644 --- a/playbooks/prerequisites.yml +++ b/playbooks/prerequisites.yml @@ -1,7 +1,7 @@ - hosts: all gather_facts: false tasks: - - name: bruteforce python installation with all packages possiblity + - name: bruteforce python installation with all packages possiblity # noqa: no-changed-when raw: | ! pkg_add python3 && ! pkg install python3 && diff --git a/roles/vmm/tasks/autoinstall_configuration.yml b/roles/vmm/tasks/autoinstall_configuration.yml index 5d12ee9..1f8cf07 100644 --- a/roles/vmm/tasks/autoinstall_configuration.yml +++ b/roles/vmm/tasks/autoinstall_configuration.yml @@ -48,6 +48,7 @@ dest: "{{ vmm_image_openbsd_kernel_prefix }}.{{ item.name }}" owner: 0 group: 0 + mode: 0600 state: hard force: true when: item.image == "openbsd" diff --git a/roles/vmm/tasks/network.yml b/roles/vmm/tasks/network.yml index b8fc7e1..9886e59 100644 --- a/roles/vmm/tasks/network.yml +++ b/roles/vmm/tasks/network.yml @@ -1,6 +1,8 @@ - name: start ip forwarding command: sysctl net.inet.ip{{ item }}.forwarding=1 loop: "{{ vmm_network_forwarded_ips }}" + register: result + changed_when: item ~ "->" ~ item not in result.stdout_lines - name: enable ip forwarding lineinfile: @@ -23,5 +25,5 @@ mode: 0640 create: true -- name: start network switch +- name: start network switch # noqa: no-changed-when command: "sh /etc/netstart {{ vmm_network_switch.interface }}" |