|
5 | 5 | src: "{{ item }}" |
6 | 6 | dest: "/etc/rsyslog.d/archivematica.conf" |
7 | 7 | backup: "yes" |
| 8 | + mode: '644' |
8 | 9 | with_first_found: |
9 | 10 | - files: |
10 | 11 | - "templates/{{ inventory_hostname }}/rsyslog.conf.j2" |
|
44 | 45 | become: yes |
45 | 46 | remote_user: "{{ archivematica_src_configure_ss_ssh_user | default('artefactual') }}" |
46 | 47 | register: archivematica_src_configure_ss_api_key_temp |
47 | | - when: |
| 48 | + when: |
48 | 49 | - "archivematica_src_configure_dashboard|bool or archivematica_src_configure_ss|bool" |
49 | 50 | - "archivematica_src_configure_ss_api_key is undefined" |
50 | 51 | - ss_user.stdout != "" |
51 | 52 |
|
52 | 53 | - set_fact: archivematica_src_configure_ss_api_key="{{ archivematica_src_configure_ss_api_key_temp.stdout }}" |
53 | | - when: |
| 54 | + when: |
54 | 55 | - "archivematica_src_configure_dashboard|bool" |
55 | 56 | - "archivematica_src_configure_ss_api_key_temp.stdout is defined" |
56 | 57 |
|
57 | 58 | # Create api-key if not defined and SS user was not already configured |
58 | 59 | - set_fact: archivematica_src_configure_ss_api_key={{ 999999999999999999999 | random | to_uuid | hash('md5') }} |
59 | | - when: |
| 60 | + when: |
60 | 61 | - "archivematica_src_configure_ss_api_key is undefined" |
61 | 62 | - "archivematica_src_configure_ss|bool" |
62 | 63 |
|
63 | 64 | - name: "Create SS superuser" |
64 | 65 | django_manage: |
65 | | - command: > |
66 | | - create_user |
| 66 | + command: > |
| 67 | + create_user |
67 | 68 | --username="{{ archivematica_src_configure_ss_user }}" |
68 | | - --password="{{ archivematica_src_configure_ss_password }}" |
| 69 | + --password="{{ archivematica_src_configure_ss_password }}" |
69 | 70 | --email="{{ archivematica_src_configure_ss_email }}" |
70 | | - --api-key="{{ archivematica_src_configure_ss_api_key }}" |
| 71 | + --api-key="{{ archivematica_src_configure_ss_api_key }}" |
71 | 72 | --superuser |
72 | 73 | app_path: "{{ archivematica_src_ss_app }}" |
73 | 74 | virtualenv: "{{ archivematica_src_ss_virtualenv }}" |
|
116 | 117 | - name: "Create Dashboard user and register pipeline on SS" |
117 | 118 | django_manage: |
118 | 119 | command: > |
119 | | - install |
| 120 | + install |
120 | 121 | --username="{{ archivematica_src_configure_am_user }}" |
121 | 122 | --password="{{ archivematica_src_configure_am_password }}" |
122 | 123 | --email="{{ archivematica_src_configure_am_email }}" |
|
187 | 188 | - archivematica_src_configure_dashboard|bool |
188 | 189 | - archivematica_src_configure_dashboardsettings is defined |
189 | 190 |
|
190 | | -# The rsync user is defined in the rsync_target, as user@host:/path |
| 191 | +# The rsync user is defined in the rsync_target, as user@host:/path |
191 | 192 | - name: "Get rsync user for dip upload" |
192 | 193 | set_fact: |
193 | 194 | atom_dipupload_ssh_user: "{{ archivematica_src_configure_dashboardsettings['rsync_target'].split('@')[0] }}" |
|
0 commit comments