diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-03-21 11:10:05 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-03-21 11:15:28 +0100 |
commit | d3ed6ff83913dd7757f21a70915acd75f1df6140 (patch) | |
tree | c444362d43d2e7e01ae9cff561004a75e588194a /ansible/roles/lxc-machine/tasks/main.yml | |
parent | edbe2bfb1b4845f853a1634565fbf264d1591628 (diff) | |
download | infra-d3ed6ff83913dd7757f21a70915acd75f1df6140.tar.gz infra-d3ed6ff83913dd7757f21a70915acd75f1df6140.tar.bz2 infra-d3ed6ff83913dd7757f21a70915acd75f1df6140.tar.xz infra-d3ed6ff83913dd7757f21a70915acd75f1df6140.zip |
o Adding LXC on conflatorio.
Diffstat (limited to 'ansible/roles/lxc-machine/tasks/main.yml')
-rw-r--r-- | ansible/roles/lxc-machine/tasks/main.yml | 50 |
1 files changed, 14 insertions, 36 deletions
diff --git a/ansible/roles/lxc-machine/tasks/main.yml b/ansible/roles/lxc-machine/tasks/main.yml index 591b317..f6e927c 100644 --- a/ansible/roles/lxc-machine/tasks/main.yml +++ b/ansible/roles/lxc-machine/tasks/main.yml @@ -1,39 +1,23 @@ -- 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: - dest: /etc/hosts - content: | - 127.0.0.1 localhost - 127.0.1.1 {{ ansible_ssh_extra_args }}.trygvis.io {{ ansible_ssh_extra_args }} - - # The following lines are desirable for IPv6 capable hosts - ::1 localhost ip6-localhost ip6-loopback - ff02::1 ip6-allnodes - ff02::2 ip6-allrouters - - name: Remove default network setup packages apt: - name: "{{ item }}" + name: "{{ items }}" state: absent purge: true - with_items: - - ifupdown - - net-tools - - iproute2 - - isc-dhcp-client + vars: + items: + - ifupdown + - net-tools + - isc-dhcp-client + +- name: Remove default network setup packages + apt: + name: "{{ items }}" + install_recommends: no + vars: + items: + - iproute2 - name: system setup - tags: - - packages block: - name: misc packages apt: @@ -41,9 +25,3 @@ install_recommends: no with_items: - systemd-cron - - ca-certificates - - unzip - - sudo - - vim - - less - - ack |