- name: add hosts
lineinfile:
dest: /etc/hosts
regexp: ''
line: '127.0.0.2 test.site'
insertafter: EOF
backup: yes
Ansible добавть в конец файла /etc/hosts
Published inOrchestration
- name: add hosts
lineinfile:
dest: /etc/hosts
regexp: ''
line: '127.0.0.2 test.site'
insertafter: EOF
backup: yes
Be First to Comment