2018-02-13 00:50:40 +00:00
|
|
|
- name: Turn the crank for systemd (debuntu)
|
2017-10-08 19:42:55 +00:00
|
|
|
shell: hostnamectl set-hostname "{{ iiab_hostname }}.{{ iiab_domain }}"
|
|
|
|
when: is_debuntu
|
|
|
|
|
2018-02-13 00:50:40 +00:00
|
|
|
- name: Configure /etc/sysconfig/network (redhat)
|
|
|
|
template:
|
|
|
|
src: roles/network/templates/network/sysconfig.network.j2
|
|
|
|
dest: /etc/sysconfig/network
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
2017-10-08 19:42:55 +00:00
|
|
|
when: is_redhat
|
2017-11-05 19:40:19 +00:00
|
|
|
|
|
|
|
- name: Configure short hostname in /etc/hosts
|
2018-02-13 00:50:40 +00:00
|
|
|
lineinfile:
|
|
|
|
dest: /etc/hosts
|
|
|
|
regexp: "^127\.0\.0\.1"
|
|
|
|
line: "127.0.0.1 localhost.localdomain localhost box {{ iiab_hostname }}"
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
2017-11-05 19:54:26 +00:00
|
|
|
|
2017-11-18 17:40:40 +00:00
|
|
|
#- name: Re-configuring httpd - not initial install
|
|
|
|
# include_tasks: roles/httpd/tasks/main.yml
|
|
|
|
# when: iiab_stage|int > 3
|
2017-11-05 21:11:14 +00:00
|
|
|
|
2017-11-13 02:52:02 +00:00
|
|
|
#- name: Re-configuring rest of networking - not initial install
|
|
|
|
# include_tasks: roles/network/tasks/main.yml
|
|
|
|
# when: iiab_stage|int > 4
|