Skip to content

Commit

Permalink
Fix "free-form" (ansible-lint)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitabaks committed Dec 13, 2024
1 parent 2b5538c commit 5742451
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions automation/roles/ansible-role-firewall/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
retries: 3

- name: Flush iptables the first time playbook runs.
ansible.builtin.command: >
iptables -F
creates=/etc/firewall.bash
ansible.builtin.command:
cmd: iptables -F
creates: /etc/firewall.bash

- name: Copy firewall script into place.
ansible.builtin.template:
Expand Down
6 changes: 3 additions & 3 deletions automation/roles/swap/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
# if the swap does not exist
- block:
- name: Create swap file
ansible.builtin.command: >
dd if=/dev/zero of={{ swap_file_path }} bs=1M count={{ swap_file_size_mb }}
creates='{{ swap_file_path }}'
ansible.builtin.command:
cmd: dd if=/dev/zero of={{ swap_file_path }} bs=1M count={{ swap_file_size_mb }}
creates: "{{ swap_file_path }}"

- name: Set permissions on swap file
ansible.builtin.file:
Expand Down

0 comments on commit 5742451

Please sign in to comment.