Add a role for portshaker.

This commit is contained in:
Tom Alexander
2022-12-10 15:29:19 -05:00
parent 5675f317dd
commit 7de6bc9231
15 changed files with 155 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
- name: Set the /etc/hosts
ansible.builtin.lineinfile:
path: /etc/hosts
regexp: '^{{ item.key | regex_escape() }}'
regexp: '^{{ item.key | regex_escape() }}\s+'
line: "{{ item.key }} {{ item.value | join(' ') }}"
loop: "{{ etc_hosts | dict2items }}"