aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/lxc-machine
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/lxc-machine')
-rw-r--r--ansible/roles/lxc-machine/tasks/main.yml50
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