Guillaume Coré
2017-11-14 1834a6fea26cc2a3f201f616d5ae3a795497871b
restart sssd after ipa_optimize
1 files modified
32 ■■■■ changed files
ansible/roles/bastion-opentlc-ipa/tasks/main.yml 32 ●●●● patch | view | raw | blame | history
ansible/roles/bastion-opentlc-ipa/tasks/main.yml
@@ -12,22 +12,6 @@
- name: Register bastion with IPA
  shell: "/usr/sbin/ipa-client-install --domain=OPENTLC.COM -w {{ipa_host_password}} -N -U --mkhomedir --no-dns-sshfp --hostname={{bastion_public_dns_chomped}}"
# quick fix for sssd
- name: copy over fix_ipa.sh script
  copy:
    src: "{{ role_path }}/files/fix_ipa.sh"
    dest: /opt/fix_ipa.sh
    owner: root
    group: root
    mode: 0700
- name: check IPA authorized_key
  command: /opt/fix_ipa.sh
  register: result_sss
  until: result_sss | succeeded
  retries: 10
  delay: 20
- name: Add opentlc-access ipa group to sudoers.d
  lineinfile:
    path: /etc/sudoers.d/opentlc-sudoers
@@ -45,3 +29,19 @@
    group: root
    mode: 0700
  notify: Run ipa_optimize.sh
# quick fix for sssd
- name: copy over fix_ipa.sh script
  copy:
    src: "{{ role_path }}/files/fix_ipa.sh"
    dest: /opt/fix_ipa.sh
    owner: root
    group: root
    mode: 0700
- name: restart sssd until bastion it's working
  command: /opt/fix_ipa.sh
  register: result_sss
  until: result_sss | succeeded
  retries: 10
  delay: 20