-consolidate sipp

-add clean_hosts
This commit is contained in:
Pi
2019-03-18 16:18:59 -04:00
parent 49fd61019b
commit c58e4852c0
7 changed files with 41 additions and 2 deletions

View File

@@ -23,6 +23,13 @@
content: "{{ lookup('template', '{{ role_path }}/templates/hosts.j2') }}"
state: present
tags: update_hosts
- name: clean hosts file
become: true
blockinfile:
path: /etc/hosts
marker: "# {mark} ANSIBLE MANAGED BLOCK"
content: ""
tags: clean_hosts
- name: install programs and libraries
become: true
apt:
@@ -30,3 +37,8 @@
update_cache: true
state: present
tags: install_packages
- name: set hostname
become: true
hostname:
name: '{{ inventory_hostname }}'
tags: set_hostname