From e922c123ef73a3b4ce21b1568c47367f3922eed5 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 6 Dec 2023 18:15:31 +0100 Subject: [PATCH] Removed the reference to the auth. --- meta/main.yml | 18 +++++------------- tasks/main.yml | 24 ++++++++++++++++-------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/meta/main.yml b/meta/main.yml index 619174d..f36f483 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -1,27 +1,19 @@ galaxy_info: author: Giancarlo Panichi - description: Software Analyst + description: Role that installs the information system GUI + namespace: giancarlo_panichi + role_name: information_system_gui company: ISTI-CNR - issue_tracker_url: https://support.d4science.org/projects/d4science-operation license: EUPL 1.2+ - min_ansible_version: 2.8 + min_ansible_version: "2.15" # To view available platforms and versions (or releases), visit: # https://galaxy.ansible.com/api/v1/platforms/ # - platforms: - - name: Ubuntu - versions: - - bionic - - name: EL - versions: - - 7 - galaxy_tags: - information-system-gui -dependencies: - +dependencies: [] diff --git a/tasks/main.yml b/tasks/main.yml index cca31ae..2cad1f1 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,19 +1,27 @@ --- - name: Manage the installation of the Information System GUI configuration of the swarm service + when: docker_swarm_manager_node is defined and docker_swarm_manager_node + tags: ['information_system_gui', 'information_system_gui_swarm', 'information_system_gui_server'] block: - name: Create the directory where the compose file will be placed - file: dest={{ information_system_gui_compose_dir }} state=directory owner=root group=root mode=0750 + ansible.builtin.file: + dest: "{{ information_system_gui_compose_dir }}" + state: directory + owner: root + group: root + mode: "0750" - name: Install the docker compose file - template: src=information_system_gui_docker_compose.yml.j2 dest={{ information_system_gui_compose_dir }}/docker_information_system_gui_stack.yml owner=root group=root mode='0400' + ansible.builtin.template: + src: information_system_gui_docker_compose.yml.j2 + dest: "{{ information_system_gui_compose_dir }}/docker_information_system_gui_stack.yml" + owner: root + group: root + mode: '0400' - - name: Start the Information System GUI stack - docker_stack: + - name: Start the Information System GUI stack + community.docker.docker_stack: name: '{{ information_system_gui_docker_stack_name }}' state: present - with_registry_auth: True compose: - '{{ information_system_gui_compose_dir }}/docker_information_system_gui_stack.yml' - - when: docker_swarm_manager_node is defined and docker_swarm_manager_node - tags: [ 'information_system_gui', 'information_system_gui_swarm', 'information_system_gui_server' ]