|
@@ -50,19 +50,13 @@
|
50
|
50
|
state=present
|
51
|
51
|
owner={{ fathom_db_username }}
|
52
|
52
|
|
53
|
|
-- name: Delete old fathom admin user account
|
54
|
|
- become: true
|
55
|
|
- become_user: "{{ main_user_name }}"
|
56
|
|
- shell: fathom user delete --email="{{ fathom_admin_username }}"
|
57
|
|
- args:
|
58
|
|
- chdir: /home/{{ main_user_name }}/fathom-stats
|
59
|
|
-
|
60
|
53
|
- name: Create fathom admin user account
|
61
|
54
|
become: true
|
62
|
55
|
become_user: "{{ main_user_name }}"
|
63
|
56
|
shell: fathom user add --email="{{ fathom_admin_username }}" --password="{{ fathom_admin_password }}"
|
64
|
57
|
args:
|
65
|
58
|
chdir: /home/{{ main_user_name }}/fathom-stats
|
|
59
|
+ ignore_errors: True
|
66
|
60
|
|
67
|
61
|
- name: Add systemd service to start fathom automatically
|
68
|
62
|
template:
|
|
@@ -83,6 +77,7 @@
|
83
|
77
|
dest=/etc/apache2/sites-available/fathom_{{ item.name }}.conf
|
84
|
78
|
owner=root
|
85
|
79
|
group=root
|
|
80
|
+ notify: restart apache
|
86
|
81
|
with_items: "{{ virtual_domains }}"
|
87
|
82
|
|
88
|
83
|
- name: Enable Apache sites (creates new sites-enabled symlinks)
|