Skip to content
Snippets Groups Projects
Commit d82861e4 authored by Chris Hines's avatar Chris Hines
Browse files

Merge branch 'hostname' into 'master'

Hostname



See merge request !93
parents cf935e75 103cd863
No related branches found
No related tags found
1 merge request!93Hostname
...@@ -21,7 +21,10 @@ ...@@ -21,7 +21,10 @@
when: ansible_distribution == "Debian" and ansible_distribution_major_version == "8" when: ansible_distribution == "Debian" and ansible_distribution_major_version == "8"
- name: set preserve hostname on CentOS - name: set preserve hostname on CentOS
lineinfile: dest=/etc/cloud/cloud.cfg line='preserve_hostname=True' lineinfile:
args:
dest: /etc/cloud/cloud.cfg
line: "preserve_hostname: True"
sudo: true sudo: true
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7" when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
......
...@@ -8,11 +8,6 @@ ...@@ -8,11 +8,6 @@
sudo: true sudo: true
when: ansible_os_family == 'RedHat' when: ansible_os_family == 'RedHat'
- name: "Make yum cache"
command: yum makecache
sudo: true
when: ansible_os_family == 'RedHat'
- name: "Install extra packages" - name: "Install extra packages"
yum: "name={{ item }} exclude={{ excludes|join(',') }} update_cache=yes state=present" yum: "name={{ item }} exclude={{ excludes|join(',') }} update_cache=yes state=present"
with_items: "{{ extra_packages }}" with_items: "{{ extra_packages }}"
......
...@@ -73,6 +73,6 @@ ...@@ -73,6 +73,6 @@
when: reboot_now when: reboot_now
- name: waiting for server to come back - name: waiting for server to come back
local_action: wait_for host={{ ansible_host }} state=started port=22 delay=10 search_regex=OpenSSH local_action: wait_for host={{ ansible_host }} state=started port=22 delay=60 timeout=600 search_regex=OpenSSH
sudo: false sudo: false
when: reboot_now when: reboot_now
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment