-
Notifications
You must be signed in to change notification settings - Fork 166
/
aix.yml
75 lines (61 loc) · 1.49 KB
/
aix.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
#
# Setup the filesystem to the correct sizes on AIX
#
- name: Set size of / to 1G
aix_filesystem:
filesystem: /
size: 1G
state: present
- name: Set size of /usr to 6G
aix_filesystem:
filesystem: /usr
size: 6G
state: present
- name: Set size of /var to 1G
aix_filesystem:
filesystem: /var
size: 1G
state: present
- name: Set size of /tmp to 1G
aix_filesystem:
filesystem: /tmp
size: 1G
state: present
- name: Set size of /home to 50G
aix_filesystem:
filesystem: /home
size: 50G
state: present
- name: Set size of /opt to 5G
aix_filesystem:
filesystem: /opt
size: 5G
state: present
# This is to mount the AIX file event infrastructure to get the file watcher tests passing
- name: check for /aha filesystem
ansible.builtin.find:
file_type: any
paths: /aha
register: ahafs
- name: create /aha filesystem
ansible.builtin.file:
path: /aha
state: directory
- name: Mount /aha filesystem
shell:
cmd: mount -v ahafs /aha /aha
when: ahafs.matched == 0
- name: Set maximum processes per user
community.general.aix_devices:
device: sys0
attributes:
maxuproc: "512"
# Set consistent hostname with Ansible inventory.
- name: Check hostname
ansible.builtin.command: hostname
changed_when: no
register: current_hostname
- name: Set hostname to inventory_hostname AIX
ansible.builtin.command: hostname {{ inventory_hostname }}
when: current_hostname.stdout != inventory_hostname