From eac6bfa06de01222ceb33a6865c01fc46d99769f Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Mon, 17 Sep 2018 23:09:05 +0200 Subject: o Lots of VM work. --- ansible/roles/unix-machine/tasks/main.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 ansible/roles/unix-machine/tasks/main.yml (limited to 'ansible/roles/unix-machine/tasks/main.yml') diff --git a/ansible/roles/unix-machine/tasks/main.yml b/ansible/roles/unix-machine/tasks/main.yml new file mode 100644 index 0000000..78e346a --- /dev/null +++ b/ansible/roles/unix-machine/tasks/main.yml @@ -0,0 +1,31 @@ +- name: /etc/apt/apt.conf.d/99force-ipv4 + copy: + dest: /etc/apt/apt.conf.d/99force-ipv4 + content: 'Acquire::ForceIPv4 "true";' +- name: /etc/apt/sources.list + notify: update apt cache + copy: + dest: /etc/apt/sources.list + content: | + deb [arch=i386] http://deb.debian.org/debian stretch main contrib non-free + deb [arch=i386] http://security.debian.org/ stretch/updates main contrib non-free + +- meta: flush_handlers + +# Make sure etckeeper installed very early +- name: packages (early) + tags: packages + apt: + name: "{{ item }}" + install_recommends: no + with_items: + - git + - etckeeper + +- name: packages + tags: packages + apt: + name: "{{ item }}" + install_recommends: no + with_items: + - iputils-ping -- cgit v1.2.3