Commit 91028096 authored by Дмитрий Сафронов's avatar Дмитрий Сафронов
Browse files

Resolve "use "collections:""

parent f034493a
Loading
Loading
Loading
Loading

ansible.cfg

0 → 100644
+4 −0
Original line number Diff line number Diff line
[defaults]
roles_path   = freeipa/roles
library      = freeipa/plugins/modules
module_utils = freeipa/plugins/module_utils

deploy.yml

deleted100644 → 0
+0 −28
Original line number Diff line number Diff line
---

- name: Set hostnames for IPA server & replicas
  hosts: ipaserver:ipareplicas
  become: true
  roles:
    - role: hostname
      state: present
    - role: rsyslog_sender
      state: present

- name: Install IPA servers
  hosts: ipaserver
  become: true
  collections:
    - freeipa.ansible_freeipa
  roles:
    - role: ipaserver
      state: present

- name: Install IPA replicas
  hosts: ipareplicas
  become: true
  collections:
    - freeipa.ansible_freeipa
  roles:
    - role: ipareplica
      state: present

requirements.yml

deleted100644 → 0
+0 −13
Original line number Diff line number Diff line
---

roles:
  - src: https://gitlab.cyberbrain.pw/ansible/roles/essential.git
    scm: git
  - src: https://gitlab.cyberbrain.pw/ansible/roles/hostname.git
    scm: git
  - src: https://gitlab.cyberbrain.pw/ansible/roles/rsyslog_sender.git
    scm: git

collections:
  - name: https://gitlab.cyberbrain.pw/ansible/collections/freeipa.git
    type: git

setup.yml

0 → 100644
+15 −0
Original line number Diff line number Diff line
---

- name: Setup Ansible Freeipa
  hosts: ipaserver
  become: no
  gather_facts: no
  tasks:
    - name: Clone kubespray repo ({{ freeipa_repo | default('https://github.com/freeipa/ansible-freeipa.git') }}) with required version ({{ freeipa_commit }})
      git:
        repo: "{{ freeipa_repo | default('https://github.com/freeipa/ansible-freeipa.git') }}"
        version: "{{ freeipa_commit }}"
        dest: freeipa
        clone: yes
      delegate_to: 127.0.0.1
      run_once: True