summaryrefslogtreecommitdiff
path: root/ansible/web.yml
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-12-28 17:54:25 +0200
committerLars Wirzenius <liw@liw.fi>2017-12-28 17:54:25 +0200
commit27d47d91540676854e52a3ad604cc3c80f1c48b1 (patch)
tree35d09ec5a2586152687002c46c79cca1354cf130 /ansible/web.yml
parente2d13a03d71dfb079edf2111e58642bc5cf85c48 (diff)
downloadansibleness-27d47d91540676854e52a3ad604cc3c80f1c48b1.tar.gz
Add: web.yml for a web server for testing things
Diffstat (limited to 'ansible/web.yml')
-rw-r--r--ansible/web.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/ansible/web.yml b/ansible/web.yml
new file mode 100644
index 0000000..fda2c01
--- /dev/null
+++ b/ansible/web.yml
@@ -0,0 +1,24 @@
+- hosts: web
+ remote_user: ansible
+ become: yes
+ roles:
+ - sane_debian_system
+ - unix_users
+ - apache_server
+ vars:
+ hostname: web
+ debian_codename: stretch
+ debian_mirror: deb.debian.org
+ debian_mirror_src: deb.debian.org
+ codeliwfidistro: stretch
+ static_sites:
+ - domain: web
+ owner: liw
+ ownermail: liw@liw.fi
+ worker_manager_ssh_pub: "{{ lookup('pipe', 'pass show ick2/wm_ssh_key_pub') }}"
+ unix_users:
+ - username: liw
+ comment: Lars Wirzenius
+ authorized_keys: |
+ {{ liw_ssh_pub }}
+ {{ worker_manager_ssh_pub }} \ No newline at end of file