mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
indentation/syntax per new Ansible documentation
This commit is contained in:
parent
1aca3673c3
commit
c8a54daf5c
1 changed files with 15 additions and 13 deletions
|
@ -1,22 +1,24 @@
|
||||||
- name: Turn the crank for systemd
|
- name: Turn the crank for systemd (debuntu)
|
||||||
shell: hostnamectl set-hostname "{{ iiab_hostname }}.{{ iiab_domain }}"
|
shell: hostnamectl set-hostname "{{ iiab_hostname }}.{{ iiab_domain }}"
|
||||||
when: is_debuntu
|
when: is_debuntu
|
||||||
|
|
||||||
- name: Configure /etc/sysconfig/network
|
- name: Configure /etc/sysconfig/network (redhat)
|
||||||
template: src=roles/network/templates/network/sysconfig.network.j2
|
template:
|
||||||
dest=/etc/sysconfig/network
|
src: roles/network/templates/network/sysconfig.network.j2
|
||||||
owner=root
|
dest: /etc/sysconfig/network
|
||||||
group=root
|
owner: root
|
||||||
mode=0644
|
group: root
|
||||||
|
mode: 0644
|
||||||
when: is_redhat
|
when: is_redhat
|
||||||
|
|
||||||
- name: Configure short hostname in /etc/hosts
|
- name: Configure short hostname in /etc/hosts
|
||||||
lineinfile: dest=/etc/hosts
|
lineinfile:
|
||||||
regexp='^127\.0\.0\.1'
|
dest: /etc/hosts
|
||||||
line='127.0.0.1 localhost.localdomain localhost box {{ iiab_hostname }}'
|
regexp: "^127\.0\.0\.1"
|
||||||
owner=root
|
line: "127.0.0.1 localhost.localdomain localhost box {{ iiab_hostname }}"
|
||||||
group=root
|
owner: root
|
||||||
mode=0644
|
group: root
|
||||||
|
mode: 0644
|
||||||
|
|
||||||
#- name: Re-configuring httpd - not initial install
|
#- name: Re-configuring httpd - not initial install
|
||||||
# include_tasks: roles/httpd/tasks/main.yml
|
# include_tasks: roles/httpd/tasks/main.yml
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue