aboutsummaryrefslogtreecommitdiffstats
path: root/roles/vmm/tasks/network.yml
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2022-10-22 16:41:45 +0200
committerRomain Gonçalves <me@rgoncalves.se>2022-10-22 16:41:45 +0200
commit0df015e9b5c4aefd4245c94ee98021d2af80ed99 (patch)
treed9dbf4259500857daf41b627dbc2d116ba92dbc1 /roles/vmm/tasks/network.yml
parent1cd2d31e0d5f81ce066121de78c0ed042fc3b6aa (diff)
downloadrules-0df015e9b5c4aefd4245c94ee98021d2af80ed99.tar.gz
lint: pass ansible-lint + yamllint
Diffstat (limited to 'roles/vmm/tasks/network.yml')
-rw-r--r--roles/vmm/tasks/network.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/roles/vmm/tasks/network.yml b/roles/vmm/tasks/network.yml
index 9886e59..82f3597 100644
--- a/roles/vmm/tasks/network.yml
+++ b/roles/vmm/tasks/network.yml
@@ -1,11 +1,11 @@
- name: start ip forwarding
- command: sysctl net.inet.ip{{ item }}.forwarding=1
+ ansible.builtin.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:
+ ansible.builtin.lineinfile:
path: /etc/sysctl.conf
regexp: "^net.inet.ip{{ item }}.forwarding="
line: "net.inet.ip{{ item }}.forwarding=1"
@@ -16,7 +16,7 @@
loop: "{{ vmm_network_forwarded_ips }}"
- name: create network switch
- lineinfile:
+ ansible.builtin.lineinfile:
path: "/etc/hostname.{{ vmm_network_switch.interface }}"
regexp: &network_line "add {{ ansible_default_ipv4.interface }}"
line: *network_line
@@ -26,4 +26,4 @@
create: true
- name: start network switch # noqa: no-changed-when
- command: "sh /etc/netstart {{ vmm_network_switch.interface }}"
+ ansible.builtin.command: "sh /etc/netstart {{ vmm_network_switch.interface }}"
remember that computers suck.