diff options
| author | Ahmed Abdelhalim <[email protected]> | 2025-09-10 17:52:58 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2025-09-10 17:52:58 +0200 |
| commit | e9e609e89ad879e10e58f2c4fcfa572f60d6dfad (patch) | |
| tree | 6353c98fa1b6ad69c21931ac299e8522f48c645f /roles/network/tasks | |
| parent | a5983fd890fc94650e9cc0b890220931ad3b3a88 (diff) | |
Refactor role dependencies to be more module modular
This modularity means that each role can be installed in a playbook by
itself as long as the other roles exist around it.
This also straps the ensure dependency packages exist in any of the
roles tasks, they should be moved to their own roles and configured
properly if needed.
Diffstat (limited to 'roles/network/tasks')
| -rw-r--r-- | roles/network/tasks/main.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/network/tasks/main.yml b/roles/network/tasks/main.yml index 3803c496..fbcc03c6 100644 --- a/roles/network/tasks/main.yml +++ b/roles/network/tasks/main.yml @@ -23,7 +23,7 @@ - name: "Ensure network enabled services are enabled" become: true - ansible.builtin.systemd_service: + ansible.builtin.systemd: name: "{{ item }}" enabled: true state: "started" @@ -40,7 +40,7 @@ - name: "Ensure network disabled services are disabled" become: true - ansible.builtin.systemd_service: + ansible.builtin.systemd: name: "{{ item }}" enabled: false state: "stopped" |
