diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2018-09-17 23:09:05 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2018-09-17 23:09:05 +0200 |
commit | eac6bfa06de01222ceb33a6865c01fc46d99769f (patch) | |
tree | 1515a344dacb54db571df4b25cb14ee06d094e85 /ansible/roles/lxc-machine | |
parent | 4d6a0f553ae4cbdeec73dffe4aabb3110c0e09c0 (diff) | |
download | infra-eac6bfa06de01222ceb33a6865c01fc46d99769f.tar.gz infra-eac6bfa06de01222ceb33a6865c01fc46d99769f.tar.bz2 infra-eac6bfa06de01222ceb33a6865c01fc46d99769f.tar.xz infra-eac6bfa06de01222ceb33a6865c01fc46d99769f.zip |
o Lots of VM work.
Diffstat (limited to 'ansible/roles/lxc-machine')
-rw-r--r-- | ansible/roles/lxc-machine/handlers/main.yml | 1 | ||||
-rw-r--r-- | ansible/roles/lxc-machine/tasks/main.yml | 22 |
2 files changed, 16 insertions, 7 deletions
diff --git a/ansible/roles/lxc-machine/handlers/main.yml b/ansible/roles/lxc-machine/handlers/main.yml index 3f96231..bb3f202 100644 --- a/ansible/roles/lxc-machine/handlers/main.yml +++ b/ansible/roles/lxc-machine/handlers/main.yml @@ -3,4 +3,3 @@ service: name: systemd-sysctl.service state: restarted - diff --git a/ansible/roles/lxc-machine/tasks/main.yml b/ansible/roles/lxc-machine/tasks/main.yml index e75dcd9..c60b9e8 100644 --- a/ansible/roles/lxc-machine/tasks/main.yml +++ b/ansible/roles/lxc-machine/tasks/main.yml @@ -1,10 +1,12 @@ -- name: disable ipv6 - tags: - - disable-ipv6 - copy: - dest: /etc/sysctl.d/99-disable-ipv6.conf - content: net.ipv6.conf.all.disable_ipv6=1 +- tags: enable-ipv6 + file: + path: "/etc/sysctl.d/{{ item }}" + state: absent notify: restart sysctl + with_items: + - 99-ipv6.conf + - 99-enable-ipv6.conf + - 99-disable-ipv6.conf - name: /etc/hosts copy: @@ -18,6 +20,14 @@ ff02::1 ip6-allnodes ff02::2 ip6-allrouters +- name: Remove default network setup packages + apt: + name: "{{ item }}" + state: absent + with_items: + - ifupdown + - net-tools + - name: system setup tags: - packages |