fix al container. ora va per davvero e ci sono le password in un .env.yml
This commit is contained in:
parent
75dfd49a53
commit
5941ed27b2
9 changed files with 35 additions and 20 deletions
|
|
@ -1,4 +1,4 @@
|
|||
prosody_domain: "xmpp.hackinpovo.it"
|
||||
prosody_admin: "admin@{{ prosody_domain }}"
|
||||
prosody_package: prosody
|
||||
xmpp_admin_password: "{{ lookup('env', 'XMPP_ADMIN_PASSWORD') }}"
|
||||
# xmpp_admin_password: "{{ lookup('env', 'XMPP_PASSWORD') }}" # Dovrebbe essere nel file .env.yml
|
||||
|
|
|
|||
|
|
@ -19,10 +19,9 @@
|
|||
state: started
|
||||
enabled: yes
|
||||
|
||||
- name: Create XMPP admin user
|
||||
ansible.builtin.expect:
|
||||
command: prosodyctl adduser admin@{{ xmpp_domain }}
|
||||
responses:
|
||||
"Enter new password:": "{{ xmpp_admin_password }}"
|
||||
"Retype new password:": "{{ xmpp_admin_password }}"
|
||||
become: yes
|
||||
- name: Create XMPP admin user non-interactively
|
||||
ansible.builtin.command:
|
||||
cmd: prosodyctl register admin {{ prosody_domain }} {{ XMPP_PASSWORD }}
|
||||
args:
|
||||
creates: "/var/lib/prosody/{{ prosody_domain }}/accounts/admin.dat"
|
||||
become: yes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue