manage_netplan/tasks/install.yml

24 lines
668 B
YAML
Raw Normal View History

2023-04-11 21:32:34 +00:00
---
# 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'
2023-04-15 16:14:37 +00:00
- name: "Create directory /etc/netplan"
ansible.builtin.file:
path: "/etc/netplan"
state: directory
owner: "root"
group: "root"
mode: '0755'
2023-11-29 21:53:51 +00:00
become: true