Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restarting Docker service and Support RedHat 9 were added #13

Merged
merged 4 commits into from
Nov 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,9 @@
not (ansible_virtualization_type is defined and
(ansible_virtualization_type == "lxc" or ansible_virtualization_type == "docker")
)

Check failure on line 41 in handlers/main.yml

View workflow job for this annotation

GitHub Actions / build

41:1 [trailing-spaces] trailing spaces

Check failure on line 41 in handlers/main.yml

View workflow job for this annotation

GitHub Actions / build

yaml[trailing-spaces]

Trailing spaces
- name: Restart docker.service
ansible.builtin.systemd:
name: docker.service
state: restarted
when: ansible_facts.services['docker.service'] is defined
1 change: 1 addition & 0 deletions tasks/ipv6-disable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
notify:
- Restart network
- Restart NetworkManager
- Restart docker.service
when: ansible_os_family == 'RedHat'

- name: Import ipv6-grub-disable
Expand Down
4 changes: 3 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---

- name: Populate service facts
ansible.builtin.service_facts:

Check failure on line 4 in tasks/main.yml

View workflow job for this annotation

GitHub Actions / build

4:1 [trailing-spaces] trailing spaces

Check failure on line 4 in tasks/main.yml

View workflow job for this annotation

GitHub Actions / build

yaml[trailing-spaces]

Trailing spaces
- name: Debug | ansible_distribution
ansible.builtin.debug:
var: ansible_distribution
Expand Down
Loading