aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/mw-backend
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/mw-backend')
-rw-r--r--ansible/roles/mw-backend/handlers/main.yml5
-rw-r--r--ansible/roles/mw-backend/tasks/main.yml21
2 files changed, 26 insertions, 0 deletions
diff --git a/ansible/roles/mw-backend/handlers/main.yml b/ansible/roles/mw-backend/handlers/main.yml
new file mode 100644
index 0000000..0298ff9
--- /dev/null
+++ b/ansible/roles/mw-backend/handlers/main.yml
@@ -0,0 +1,5 @@
+---
+- name: update apt cache
+ become: yes
+ apt:
+ update_cache: yes
diff --git a/ansible/roles/mw-backend/tasks/main.yml b/ansible/roles/mw-backend/tasks/main.yml
new file mode 100644
index 0000000..799f0e5
--- /dev/null
+++ b/ansible/roles/mw-backend/tasks/main.yml
@@ -0,0 +1,21 @@
+---
+- name: apt setup
+ tags: packages
+ become: yes
+ block:
+ - copy:
+ dest: /etc/apt/apt.conf.d/99force-ipv4
+ content: 'Acquire::ForceIPv4 "true";'
+ notify: update apt cache
+
+ - meta: flush_handlers
+
+# - name: packages
+# tags: packages
+# become: yes
+# apt:
+# name: "{{ item }}"
+# install_recommends: no
+# with_items:
+# - ping
+# - apache2