- fix logic in roles/resolv_conf
- revert roles/hostname; however we're going to go another way
This commit is contained in:
parent
c81ddb4015
commit
8707fb0c91
@ -8,7 +8,7 @@ namespace: jchristianh
|
||||
name: baseos
|
||||
|
||||
# The version of the collection. Must be compatible with semantic versioning
|
||||
version: 1.0.13
|
||||
version: 1.0.14
|
||||
|
||||
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
|
||||
readme: README.md
|
||||
|
@ -1,15 +1,9 @@
|
||||
---
|
||||
# - name: Set hostname for host
|
||||
# hostname:
|
||||
# name: "{{ inventory_hostname }}"
|
||||
# notify:
|
||||
# - "restart_syslog_{{ ansible_distribution | lower }}_{{ ansible_distribution_major_version }}"
|
||||
|
||||
- name: Set hostname for host
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/hostname
|
||||
line: "{{ inventory_hostname }}"
|
||||
hostname:
|
||||
name: "{{ inventory_hostname }}"
|
||||
notify:
|
||||
- "restart_syslog_{{ ansible_distribution | lower }}_{{ ansible_distribution_major_version }}"
|
||||
|
||||
|
||||
...
|
||||
|
@ -4,7 +4,8 @@
|
||||
__resolv_conf_file: "{{ __resolv_conf_file_docker }}"
|
||||
when:
|
||||
- ansible_virtualization_type == "docker" or
|
||||
ansible_virtualization_type == "podman"
|
||||
ansible_virtualization_type == "podman" or
|
||||
ansible_virtualization_type == "container"
|
||||
|
||||
|
||||
- name: Deploy {{ __resolv_conf_file }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user