2017-10-27 03:43:50 +00:00
|
|
|
# Common OS-Level Additions & Mods (that only need to be performed once)
|
|
|
|
|
2017-10-27 05:39:40 +00:00
|
|
|
- name: ...IS BEGINNING ==========================================
|
2017-10-27 03:43:50 +00:00
|
|
|
command: echo
|
2017-05-27 18:09:50 +00:00
|
|
|
|
2017-09-22 16:46:25 +00:00
|
|
|
#- include: iiab_ini.yml
|
2017-05-27 18:09:50 +00:00
|
|
|
|
2017-10-27 03:43:50 +00:00
|
|
|
# create the directory structure for IIAB
|
2017-05-27 18:09:50 +00:00
|
|
|
- include: fl.yml
|
|
|
|
|
|
|
|
- include: xo.yml
|
|
|
|
when: xo_model != "none" or osbuilder is defined
|
|
|
|
|
|
|
|
- include: centos.yml
|
|
|
|
when: ansible_distribution == "CentOS"
|
|
|
|
|
|
|
|
- include: fedora.yml
|
|
|
|
when: ansible_distribution == "Fedora"
|
|
|
|
|
|
|
|
# the following installs common packages for both debian and fedora
|
|
|
|
- include: packages.yml
|
|
|
|
|
|
|
|
- sysctl: name=net.ipv4.ip_forward value=1 state=present
|
|
|
|
- sysctl: name=net.ipv4.conf.default.rp_filter value=1 state=present
|
|
|
|
- sysctl: name=net.ipv4.conf.default.accept_source_route value=0 state=present
|
|
|
|
- sysctl: name=kernel.sysrq value=1 state=present
|
|
|
|
- sysctl: name=kernel.core_uses_pid value=1 state=present
|
|
|
|
- sysctl: name=net.ipv4.tcp_syncookies value=1 state=present
|
|
|
|
- sysctl: name=kernel.shmmax value=268435456 state=present
|
|
|
|
# IPv6 disabled
|
|
|
|
- sysctl: name=net.ipv6.conf.all.disable_ipv6 value=1 state=present
|
|
|
|
- sysctl: name=net.ipv6.conf.default.disable_ipv6 value=1 state=present
|
|
|
|
- sysctl: name=net.ipv6.conf.lo.disable_ipv6 value=1 state=present
|
|
|
|
|
2017-10-27 13:18:51 +00:00
|
|
|
- name: Set default Time Zone
|
2017-06-09 23:25:56 +00:00
|
|
|
shell: ln -sf /usr/share/zoneinfo/{{ iiab_TZ }} /etc/localtime
|
|
|
|
when: iiab_TZ is defined and iiab_TZ != ""
|
2017-05-27 18:09:50 +00:00
|
|
|
|
|
|
|
- name: Install custom profile file
|
2017-06-09 23:25:56 +00:00
|
|
|
template: dest=/etc/profile.d/zzz_iiab.sh
|
|
|
|
src=zzz_iiab.sh
|
2017-05-27 18:09:50 +00:00
|
|
|
owner=root
|
|
|
|
mode=0644
|
|
|
|
backup=no
|
|
|
|
|
|
|
|
- include: net_mods.yml
|
2017-05-27 23:10:45 +00:00
|
|
|
when: not is_debuntu and not is_F18
|
2017-05-27 18:09:50 +00:00
|
|
|
|
2017-09-20 18:58:50 +00:00
|
|
|
- include: udev.yml
|
2017-10-27 03:43:50 +00:00
|
|
|
|
2017-10-27 11:27:45 +00:00
|
|
|
- name: ...HAS COMPLETED =========================================
|
2017-10-27 03:43:50 +00:00
|
|
|
command: echo
|