aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/keystone/tasks/distribute_fernet.yml
blob: 2bb346da91f84a38cef25ca4619bdb92a2724aec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
- name: Waiting for Keystone SSH port to be UP
  ansible.builtin.wait_for:
    host: "{{ api_interface_address }}"
    port: "{{ keystone_ssh_port }}"
    connect_timeout: 1
  register: check_keystone_ssh_port
  until: check_keystone_ssh_port is success
  retries: 10
  delay: 5

- name: Run fernet key distribution
  become: true
  changed_when: true
  ansible.builtin.command: "{{ kolla_container_engine }} exec -t {{ keystone_services['keystone-fernet']['container_name'] }} /usr/bin/fernet-push.sh"
  run_once: true
  delegate_to: "{{ (groups['keystone_fernet_running_True'] | default(groups['keystone']))[0] }}"