Changeset View
Changeset View
Standalone View
Standalone View
ansible/setup.yml
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | - name: Run bin/configure | ||||
args: | args: | ||||
chdir: /home/kolab/kolab | chdir: /home/kolab/kolab | ||||
environment: | environment: | ||||
HOST: "{{ hostname }}" | HOST: "{{ hostname }}" | ||||
OPENEXCHANGERATES_API_KEY: "{{ openexchangerates_api_key }}" | OPENEXCHANGERATES_API_KEY: "{{ openexchangerates_api_key }}" | ||||
FIREBASE_API_KEY: "{{ firebase_api_key }}" | FIREBASE_API_KEY: "{{ firebase_api_key }}" | ||||
PUBLIC_IP: "{{ public_ip }}" | PUBLIC_IP: "{{ public_ip }}" | ||||
ADMIN_PASSWORD: "{{ admin_password }}" | ADMIN_PASSWORD: "{{ admin_password }}" | ||||
KOLAB_GIT_REF: "{{ git_branch }}" | |||||
- name: Permit receiving mail | - name: Permit receiving mail | ||||
firewalld: | firewalld: | ||||
port: 25/tcp | port: 25/tcp | ||||
permanent: yes | permanent: yes | ||||
state: enabled | state: enabled | ||||
zone: FedoraServer | zone: FedoraServer | ||||
▲ Show 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | tasks: | ||||
- name: Deploy | - name: Deploy | ||||
block: | block: | ||||
- name: Run bin/deploy | - name: Run bin/deploy | ||||
become: true | become: true | ||||
become_user: kolab | become_user: kolab | ||||
ansible.builtin.command: bin/deploy.sh | ansible.builtin.command: bin/deploy.sh | ||||
args: | args: | ||||
chdir: /home/kolab/kolab | chdir: /home/kolab/kolab | ||||
environment: | |||||
ADMIN_PASSWORD: "{{ admin_password }}" | |||||
register: result | register: result | ||||
always: | always: | ||||
- name: Print output from previous task with newlines | - name: Print output from previous task with newlines | ||||
ansible.builtin.debug: | ansible.builtin.debug: | ||||
msg="{{result.stdout_lines}}" | msg="{{result.stdout_lines}}" | ||||
- name: Set admin password | |||||
become: true | |||||
become_user: kolab | |||||
ansible.builtin.command: docker exec -w /src/kolabsrc/ kolab-webapp ./artisan user:password admin@{{ hostname }} {{ admin_password|quote }} | |||||
args: | |||||
chdir: /home/kolab/kolab |