ansible_cache/home_linux/install_network_manager.yaml
2024-12-27 12:47:45 +00:00

30 lines
671 B
YAML

---
- name: Install the Network Manager service on the Raspberries
hosts: kubernetes
roles:
- common
become: yes
gather_facts: no
tasks:
- name: Install the Network Manager package
ansible.builtin.apt:
name: network-manager
state: present
update_cache: yes
- name: Enable and start the Network Manager service
ansible.builtin.service:
name: NetworkManager
state: started
enabled: yes
- name: Test that the Network Manager service is running
ansible.builtin.shell: nmcli g
register: nmcli_status
- name: Print test results
ansible.builtin.debug:
var: nmcli_status["stdout_lines"]