summaryrefslogtreecommitdiff
path: root/ansible/web.yml
blob: fda2c01a5bf56490d7f60b82c28de84f52f1a5e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 }}