Compare commits
11 Commits
Author | SHA1 | Date | |
---|---|---|---|
d25730cb74 | |||
f7e878ce39 | |||
1ad31b8305 | |||
2cacd15d59 | |||
bdfa48f95d | |||
c104223bc0 | |||
78c47af393 | |||
a29281515b | |||
df89b4306f | |||
152e7e3815 | |||
a927a26546 |
@ -8,7 +8,7 @@ namespace: jchristianh
|
|||||||
name: baseos
|
name: baseos
|
||||||
|
|
||||||
# The version of the collection. Must be compatible with semantic versioning
|
# The version of the collection. Must be compatible with semantic versioning
|
||||||
version: 1.0.22
|
version: 1.0.26
|
||||||
|
|
||||||
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
|
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
|
||||||
readme: README.md
|
readme: README.md
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
---
|
---
|
||||||
requires_ansible: ">=2.15.0"
|
requires_ansible: ">=2.14.0"
|
||||||
|
@ -4,7 +4,7 @@ galaxy_info:
|
|||||||
|
|
||||||
license: GPL-2.0-or-later
|
license: GPL-2.0-or-later
|
||||||
|
|
||||||
min_ansible_version: "2.14"
|
min_ansible_version: "2.14.0"
|
||||||
|
|
||||||
platforms:
|
platforms:
|
||||||
- name: Fedora
|
- name: Fedora
|
||||||
|
@ -4,7 +4,7 @@ galaxy_info:
|
|||||||
|
|
||||||
license: GPL-2.0-or-later
|
license: GPL-2.0-or-later
|
||||||
|
|
||||||
min_ansible_version: "2.14"
|
min_ansible_version: "2.14.0"
|
||||||
|
|
||||||
platforms:
|
platforms:
|
||||||
- name: Fedora
|
- name: Fedora
|
||||||
|
@ -4,7 +4,7 @@ galaxy_info:
|
|||||||
|
|
||||||
license: GPL-2.0-or-later
|
license: GPL-2.0-or-later
|
||||||
|
|
||||||
min_ansible_version: "2.14"
|
min_ansible_version: "2.14.0"
|
||||||
|
|
||||||
platforms:
|
platforms:
|
||||||
- name: Fedora
|
- name: Fedora
|
||||||
|
@ -6,7 +6,7 @@ galaxy_info:
|
|||||||
|
|
||||||
license: GPL-2.0-or-later
|
license: GPL-2.0-or-later
|
||||||
|
|
||||||
min_ansible_version: "2.14"
|
min_ansible_version: "2.14.0"
|
||||||
|
|
||||||
platforms:
|
platforms:
|
||||||
- name: Fedora
|
- name: Fedora
|
||||||
|
@ -4,7 +4,7 @@ galaxy_info:
|
|||||||
|
|
||||||
license: GPL-2.0-or-later
|
license: GPL-2.0-or-later
|
||||||
|
|
||||||
min_ansible_version: "2.14"
|
min_ansible_version: "2.14.0"
|
||||||
|
|
||||||
platforms:
|
platforms:
|
||||||
- name: Fedora
|
- name: Fedora
|
||||||
|
@ -9,32 +9,8 @@
|
|||||||
- "Restart_syslog_{{ ansible_distribution | lower }}_{{ ansible_distribution_major_version }}"
|
- "Restart_syslog_{{ ansible_distribution | lower }}_{{ ansible_distribution_major_version }}"
|
||||||
|
|
||||||
rescue:
|
rescue:
|
||||||
- name: Ensure hostname package is present
|
- name: Unable to set hostname
|
||||||
ansible.builtin.package:
|
ansible.builtin.debug:
|
||||||
name: hostname
|
msg: "Unable to set hostname for {{ ansible_hostname }} to {{ inventory_hostname }}."
|
||||||
state: present
|
|
||||||
|
|
||||||
- name: Set hostname file if running in container
|
|
||||||
ansible.builtin.set_fact:
|
|
||||||
hostname_hostname_file: "{{ hostname_hostname_file }}.container"
|
|
||||||
when:
|
|
||||||
- ansible_virtualization_type | regex_search("docker|podman|container")
|
|
||||||
|
|
||||||
- name: Add entry into hostname file
|
|
||||||
ansible.builtin.lineinfile:
|
|
||||||
path: "{{ hostname_hostname_file }}"
|
|
||||||
line: "{{ inventory_hostname }}"
|
|
||||||
state: present
|
|
||||||
create: true
|
|
||||||
mode: '0644'
|
|
||||||
|
|
||||||
- name: Update hostname from /etc/hostname
|
|
||||||
ansible.builtin.command:
|
|
||||||
cmd: "hostname -F {{ hostname_hostname_file }}"
|
|
||||||
notify:
|
|
||||||
- "Restart_syslog_{{ ansible_distribution | lower }}_{{ ansible_distribution_major_version }}"
|
|
||||||
when:
|
|
||||||
- not ansible_virtualization_type | regex_search("docker|podman|container")
|
|
||||||
|
|
||||||
|
|
||||||
...
|
...
|
||||||
|
@ -4,7 +4,7 @@ galaxy_info:
|
|||||||
|
|
||||||
license: GPL-2.0-or-later
|
license: GPL-2.0-or-later
|
||||||
|
|
||||||
min_ansible_version: "2.14"
|
min_ansible_version: "2.14.0"
|
||||||
|
|
||||||
platforms:
|
platforms:
|
||||||
- name: Fedora
|
- name: Fedora
|
||||||
|
@ -4,4 +4,4 @@ node_status_user : chris
|
|||||||
node_status_group : chris
|
node_status_group : chris
|
||||||
node_status_dir : /home/chris/node_status
|
node_status_dir : /home/chris/node_status
|
||||||
node_status_file : status.csv
|
node_status_file : status.csv
|
||||||
node_status_count : 3
|
node_status_lc : 3
|
||||||
|
@ -4,7 +4,7 @@ galaxy_info:
|
|||||||
|
|
||||||
license: GPL-2.0-or-later
|
license: GPL-2.0-or-later
|
||||||
|
|
||||||
min_ansible_version: "2.14"
|
min_ansible_version: "2.14.0"
|
||||||
|
|
||||||
platforms:
|
platforms:
|
||||||
- name: Fedora
|
- name: Fedora
|
||||||
|
@ -29,4 +29,5 @@
|
|||||||
owner : "{{ node_status_user }}"
|
owner : "{{ node_status_user }}"
|
||||||
group : "{{ node_status_group }}"
|
group : "{{ node_status_group }}"
|
||||||
delegate_to : "{{ node_status_host }}"
|
delegate_to : "{{ node_status_host }}"
|
||||||
loop: "{{ range(0, node_status_count) | list }}"
|
throttle : 1
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ galaxy_info:
|
|||||||
|
|
||||||
license: GPL-2.0-or-later
|
license: GPL-2.0-or-later
|
||||||
|
|
||||||
min_ansible_version: "2.14"
|
min_ansible_version: "2.14.0"
|
||||||
|
|
||||||
platforms:
|
platforms:
|
||||||
- name: Fedora
|
- name: Fedora
|
||||||
|
@ -4,7 +4,7 @@ galaxy_info:
|
|||||||
|
|
||||||
license: GPL-2.0-or-later
|
license: GPL-2.0-or-later
|
||||||
|
|
||||||
min_ansible_version: "2.14"
|
min_ansible_version: "2.14.0"
|
||||||
|
|
||||||
platforms:
|
platforms:
|
||||||
- name: Fedora
|
- name: Fedora
|
||||||
|
@ -4,7 +4,7 @@ galaxy_info:
|
|||||||
|
|
||||||
license: GPL-2.0-or-later
|
license: GPL-2.0-or-later
|
||||||
|
|
||||||
min_ansible_version: "2.14"
|
min_ansible_version: "2.14.0"
|
||||||
|
|
||||||
platforms:
|
platforms:
|
||||||
- name: Fedora
|
- name: Fedora
|
||||||
|
Reference in New Issue
Block a user