manage_netplan/tasks/install.yml

23 lines
653 B
YAML

---
# task/install_packages file for manage_netplan
- name: "Install netplan:latest"
ansible.builtin.include_role:
name: ednxzu.manage_apt_packages
vars:
manage_apt_packages_list: "{{ manage_netplan_packages }}"
- name: "Install network-manager:latest when used as renderer"
ansible.builtin.include_role:
name: ednxzu.manage_apt_packages
vars:
manage_apt_packages_list: "{{ manage_netplan_networkmanager_pkg }}"
when: manage_netplan_renderer == 'NetworkManager'
- name: "Create directory /etc/netplan"
ansible.builtin.file:
path: "/etc/netplan"
state: directory
owner: "root"
group: "root"
mode: '0755'