Add a role for portshaker.
This commit is contained in:
@@ -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 }}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user