- change to lineinfile

- galaxy version bump
This commit is contained in:
Chris Hammer 2023-12-09 23:38:04 -05:00
parent 4cd9073772
commit c81ddb4015
2 changed files with 10 additions and 4 deletions

View File

@ -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.12 version: 1.0.13
# 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

View File

@ -1,9 +1,15 @@
--- ---
# - name: Set hostname for host
# hostname:
# name: "{{ inventory_hostname }}"
# notify:
# - "restart_syslog_{{ ansible_distribution | lower }}_{{ ansible_distribution_major_version }}"
- name: Set hostname for host - name: Set hostname for host
hostname: ansible.builtin.lineinfile:
name: "{{ inventory_hostname }}" path: /etc/hostname
line: "{{ inventory_hostname }}"
notify: notify:
- "restart_syslog_{{ ansible_distribution | lower }}_{{ ansible_distribution_major_version }}" - "restart_syslog_{{ ansible_distribution | lower }}_{{ ansible_distribution_major_version }}"
... ...