|
40 | 40 | - name: Place the serverapplication configfiles |
41 | 41 | ansible.builtin.template: |
42 | 42 | src: "{{ item }}.j2" |
43 | | - dest: /opt/openconext/manage/{{ item }} |
44 | | - owner: root |
45 | | - group: root |
| 43 | + dest: "/opt/openconext/manage/{{ item }}" |
| 44 | + owner: "root" |
| 45 | + group: "root" |
46 | 46 | mode: "0644" |
47 | 47 | with_items: |
48 | | - - application.yml |
49 | | - - logback.xml |
50 | | - - manage-api-users.yml |
| 48 | + - "application.yml" |
| 49 | + - "logback.xml" |
| 50 | + - "manage-api-users.yml" |
51 | 51 | notify: restart manageserver |
52 | 52 |
|
53 | 53 | - name: Place old __cacert_entrypoint.sh script |
|
62 | 62 | ansible.builtin.template: |
63 | 63 | src: "metadata_configuration/{{ item }}.schema.json.j2" |
64 | 64 | dest: "/opt/openconext/manage/metadata_configuration/{{ item }}.schema.json" |
65 | | - owner: root |
66 | | - group: root |
| 65 | + owner: "root" |
| 66 | + group: "root" |
67 | 67 | mode: "0640" |
68 | 68 | with_items: |
69 | 69 | - "{{ manage_tabs_enabled }}" |
|
90 | 90 | group: root |
91 | 91 | mode: "0640" |
92 | 92 | with_items: |
93 | | - - allowed_attributes.json |
94 | | - - extra_saml_attributes.json |
| 93 | + - "allowed_attributes.json" |
| 94 | + - "extra_saml_attributes.json" |
95 | 95 | notify: |
96 | 96 | - "restart manageserver" |
97 | 97 |
|
98 | 98 | - name: Add the mongodb and mariadb docker network to the list of networks when MongoDB runs in Docker |
99 | 99 | ansible.builtin.set_fact: |
100 | 100 | manage_docker_networks: |
101 | | - - name: loadbalancer |
102 | | - - name: openconext_mongodb |
103 | | - - name: openconext_mariadb |
| 101 | + - name: "loadbalancer" |
| 102 | + - name: "openconext_mongodb" |
| 103 | + - name: "openconext_mariadb" |
104 | 104 | when: mongodb_in_docker | default(false) | bool |
105 | 105 |
|
106 | 106 | - name: Create and start the server container |
|
114 | 114 | state: started |
115 | 115 | networks: "{{ manage_docker_networks }}" |
116 | 116 | mounts: |
117 | | - - source: /opt/openconext/manage/ |
118 | | - target: /config/ |
119 | | - type: bind |
120 | | - - source: /opt/openconext/manage/mongoca.pem |
121 | | - target: /certificates/mongoca.crt |
122 | | - type: bind |
123 | | - - source: /opt/openconext/manage/__cacert_entrypoint.sh |
124 | | - target: /__cacert_entrypoint.sh |
125 | | - type: bind |
126 | | - - source: /opt/openconext/manage/stepup_config.json |
127 | | - target: /stepup_config.json |
128 | | - type: bind |
129 | | - |
| 117 | + - source: "/opt/openconext/manage/" |
| 118 | + target: "/config/" |
| 119 | + type: "bind" |
| 120 | + read_only: true |
| 121 | + - source: "/opt/openconext/manage/mongoca.pem" |
| 122 | + target: "/certificates/mongoca.crt" |
| 123 | + type: "bind" |
| 124 | + read_only: true |
| 125 | + - source: "/opt/openconext/manage/__cacert_entrypoint.sh" |
| 126 | + target: "/__cacert_entrypoint.sh" |
| 127 | + type: "bind" |
| 128 | + read_only: true |
| 129 | + - source: "/opt/openconext/manage/stepup_config.json" |
| 130 | + target: "/stepup_config.json" |
| 131 | + type: "bind" |
| 132 | + read_only: true |
130 | 133 | command: "java -jar /app.jar -Xmx512m --spring.config.location=./config/" |
131 | 134 | etc_hosts: |
132 | 135 | host.docker.internal: host-gateway |
|
183 | 186 | - source: /etc/localtime |
184 | 187 | target: /etc/localtime |
185 | 188 | type: bind |
| 189 | + read_only: true |
186 | 190 | - source: /opt/openconext/common/favicon.ico |
187 | 191 | target: /var/www/favicon.ico |
188 | 192 | type: bind |
| 193 | + read_only: true |
0 commit comments