2017-10-27 03:43:50 +00:00
|
|
|
# Common OS-Level Additions & Mods (that only need to be performed once)
|
|
|
|
|
2017-10-30 20:31:16 +00:00
|
|
|
- name: ...IS BEGINNING ==========================================
|
2021-07-28 05:57:19 +00:00
|
|
|
meta: noop
|
2017-05-27 18:09:50 +00:00
|
|
|
|
2019-01-15 20:33:02 +00:00
|
|
|
- name: Create IIAB directory structure ("file layout")
|
2019-01-15 12:16:08 +00:00
|
|
|
include_tasks: fl.yml
|
|
|
|
|
2021-07-28 05:57:19 +00:00
|
|
|
- include_tasks: packages.yml
|
|
|
|
|
2022-03-24 13:13:46 +00:00
|
|
|
- name: "Use 'sysctl' to set 'kernel.core_uses_pid: 1' in /etc/sysctl.conf"
|
|
|
|
sysctl: # Places these settings in /etc/sysctl.conf, to survive reboot
|
|
|
|
name: "{{ item.name }}"
|
|
|
|
value: "{{ item.value }}"
|
|
|
|
with_items:
|
|
|
|
#- { name: 'kernel.sysrq', value: '1' } # OS values differ, Ok?
|
|
|
|
- { name: 'kernel.core_uses_pid', value: '1' }
|
|
|
|
#- { name: 'kernel.shmmax', value: '268435456' } # OS values differ, Ok?
|
2021-07-28 05:57:19 +00:00
|
|
|
|
|
|
|
- include_tasks: iiab-startup.yml
|
|
|
|
|
2021-07-31 22:01:17 +00:00
|
|
|
|
2021-07-26 19:38:40 +00:00
|
|
|
# UNMAINTAINED
|
2021-07-28 05:42:11 +00:00
|
|
|
#- include_tasks: centos.yml
|
|
|
|
# when: ansible_distribution == "CentOS"
|
2017-05-27 18:09:50 +00:00
|
|
|
|
2021-07-26 19:38:40 +00:00
|
|
|
# UNMAINTAINED
|
2021-07-28 05:42:11 +00:00
|
|
|
#- include_tasks: fedora.yml
|
|
|
|
# when: ansible_distribution == "Fedora"
|
2017-05-27 18:09:50 +00:00
|
|
|
|
2021-07-26 19:38:40 +00:00
|
|
|
# UNMAINTAINED
|
2021-07-28 05:42:11 +00:00
|
|
|
#- include_tasks: prep.yml
|
|
|
|
# when: not is_debuntu
|
2017-11-09 10:51:07 +00:00
|
|
|
|
2021-07-26 19:38:40 +00:00
|
|
|
# UNMAINTAINED
|
2021-07-28 05:42:11 +00:00
|
|
|
#- include_tasks: xo.yml
|
|
|
|
# when: xo_model != "none" or osbuilder is defined
|
2017-11-09 10:51:07 +00:00
|
|
|
|
2021-07-28 05:57:19 +00:00
|
|
|
# UNMAINTAINED
|
|
|
|
#- include_tasks: net_mods.yml
|
|
|
|
# when: not is_debuntu and not is_F18
|
2017-05-27 18:09:50 +00:00
|
|
|
|
2021-07-26 19:38:40 +00:00
|
|
|
# UNMAINTAINED
|
2021-07-27 17:00:58 +00:00
|
|
|
#- name: Install /etc/profile.d/zzz_iiab.sh from template, to add sbin dirs to unprivileged users' $PATH
|
|
|
|
# template:
|
|
|
|
# dest: /etc/profile.d/zzz_iiab.sh
|
|
|
|
# src: zzz_iiab.sh
|
2017-05-27 18:09:50 +00:00
|
|
|
|
2021-07-31 22:01:17 +00:00
|
|
|
|
2017-10-30 20:31:16 +00:00
|
|
|
- name: Recording STAGE 2 HAS COMPLETED ==========================
|
2018-02-13 02:29:06 +00:00
|
|
|
lineinfile:
|
2020-02-04 00:54:04 +00:00
|
|
|
path: "{{ iiab_env_file }}"
|
2018-02-13 02:51:08 +00:00
|
|
|
regexp: '^STAGE=*'
|
|
|
|
line: 'STAGE=2'
|