divers
This commit is contained in:
parent
b3d90a28a7
commit
5152ee026b
@ -13,5 +13,5 @@
|
||||
|
||||
- name: bridge_enable
|
||||
become: yes
|
||||
shell: netctl enable bridge && systemctl disable dhcpcd
|
||||
shell: netctl enable bridge
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
- name: Add user to libvirt group
|
||||
user:
|
||||
name: '{{ username }}'
|
||||
name: '{{ user.name }}'
|
||||
groups: libvirt
|
||||
append: True
|
||||
become: yes
|
||||
@ -35,6 +35,13 @@
|
||||
template:
|
||||
dest: /etc/netctl/bridge # required. Location to render the template to on the remote machine.
|
||||
src: bridge.j2 # required. Path of a Jinja2 formatted template on the Ansible controller. This can be a relative or absolute path.
|
||||
when: ansible_default_ipv4.type == "ether"
|
||||
when: ansible_default_ipv4.type == "ether" and "wlp2s0" not in ansible_interfaces
|
||||
become: yes
|
||||
notify: bridge_enable
|
||||
notify: bridge_enable
|
||||
|
||||
- name: disable dhcpcd
|
||||
systemd:
|
||||
name: dhcpcd # required. Name of the service.
|
||||
enabled: false
|
||||
become: yes
|
||||
|
Loading…
Reference in New Issue
Block a user