You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: automation/roles/bind_address/README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
This role automatically detects and sets the available private IPv4 address for each host as the variable `bind_address`, unless it is already defined in inventory or group_vars.
4
4
5
5
#### How it works
6
+
6
7
- Finds the first available private IPv4 address on the host (excluding the docker0 interface, if present).
7
8
- Sets this address as the Ansible fact bind_address using set_fact.
8
9
- If bind_address is already defined in inventory or variables, it will not be executed.
Copy file name to clipboardExpand all lines: automation/roles/common/README.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ This role serves as a centralized place to define default variables shared acros
10
10
## Usage Notes
11
11
12
12
- This role must be listed as a dependency in other roles via `meta/main.yml`:
13
+
13
14
```yaml
14
15
dependencies:
15
16
- role: vitabaks.autobase.common
@@ -22,16 +23,16 @@ This role serves as a centralized place to define default variables shared acros
22
23
23
24
## Important Guidelines
24
25
25
-
- Do not redefine variables in the `defaults/` directory of dependent roles if they already exist in `common/defaults`. Instead, comment them out or remove them to avoid duplication and priority conflicts. Example:
26
+
- Do not redefine variables in the `defaults/` directory of dependent roles if they already exist in `common/defaults`. Instead, comment them out or remove them to avoid duplication and priority conflicts. Example:
26
27
27
28
```yaml
28
-
# Defined in roles/common/defaults/main.yml. Commented out here to prevent conflicts.
29
-
# mount:
30
-
# - path: ""
31
-
# src: ""
32
-
# fstype: ""
33
-
# opts: ""
34
-
# state: ""
29
+
# Defined in roles/common/defaults/main.yml. Commented out here to prevent conflicts.
30
+
# mount:
31
+
# - path: ""
32
+
# src: ""
33
+
# fstype: ""
34
+
# opts: ""
35
+
# state: ""
35
36
```
36
37
37
38
- Variables from `common/defaults` are not available during playbook parsing. This affects conditional expressions such as `when:`
@@ -42,4 +43,3 @@ This role serves as a centralized place to define default variables shared acros
42
43
```
43
44
44
45
- If a variable from `common` must be available during playbook parsing (e.g. used in 'when'), define it in `group_vars` or another appropriate location.
0 commit comments