Skip to content
Snippets Groups Projects
Commit 84c01880 authored by Thomas Woerner's avatar Thomas Woerner
Browse files

tests/ca-less: Use FQCN for ansible.builtin

Use Fully Qualified Collection Name (FQCN) for ansible builtins. This is
ansible.builtin.set_fact instead of set_fact for example and aplies for
all actions that are part of ansible.builtin.

All the replaced ansible.builtins:
  assert, command, copy, debug, fail, fetch, file, import_playbook,
  import_tasks, include_role, include_tasks, include_vars, package,
  set_fact, shell, slurp, stat, systemd
parent 1f91730b
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
tasks: tasks:
- name: Run generate-certificates.sh - name: Run generate-certificates.sh
command: > ansible.builtin.command: >
/bin/bash /bin/bash
generate-certificates.sh delete "{{ item }}" generate-certificates.sh delete "{{ item }}"
args: args:
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
tasks: tasks:
- name: Run generate-certificates.sh - name: Run generate-certificates.sh
command: > ansible.builtin.command: >
/bin/bash /bin/bash
generate-certificates.sh create generate-certificates.sh create
"{{ groups.ipareplicas[0] }}" "{{ groups.ipareplicas[0] }}"
...@@ -40,18 +40,18 @@ ...@@ -40,18 +40,18 @@
pre_tasks: pre_tasks:
- name: Remove "/root/ca-less-test" - name: Remove "/root/ca-less-test"
file: ansible.builtin.file:
path: "/root/ca-less-test" path: "/root/ca-less-test"
state: absent state: absent
- name: Generate "/root/ca-less-test" - name: Generate "/root/ca-less-test"
file: ansible.builtin.file:
path: "/root/ca-less-test" path: "/root/ca-less-test"
state: directory state: directory
mode: 0775 mode: 0775
- name: Copy CA certificate - name: Copy CA certificate
copy: ansible.builtin.copy:
src: "{{ playbook_dir }}/certificates/root-ca/cert.pem" src: "{{ playbook_dir }}/certificates/root-ca/cert.pem"
dest: "/root/ca-less-test/ca.crt" dest: "/root/ca-less-test/ca.crt"
owner: root owner: root
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
mode: "0644" mode: "0644"
- name: Copy p12 certificates - name: Copy p12 certificates
copy: ansible.builtin.copy:
src: "{{ playbook_dir }}/certificates/{{ item }}/{{ groups.ipareplicas[0] }}/cert.p12" src: "{{ playbook_dir }}/certificates/{{ item }}/{{ groups.ipareplicas[0] }}/cert.p12"
dest: "/root/ca-less-test/{{ item }}.p12" dest: "/root/ca-less-test/{{ item }}.p12"
owner: root owner: root
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
post_tasks: post_tasks:
- name: Fix KDC certificate permissions - name: Fix KDC certificate permissions
file: ansible.builtin.file:
path: /var/kerberos/krb5kdc/kdc.crt path: /var/kerberos/krb5kdc/kdc.crt
owner: root owner: root
group: root group: root
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
tasks: tasks:
- name: Run generate-certificates.sh - name: Run generate-certificates.sh
command: > ansible.builtin.command: >
/bin/bash /bin/bash
generate-certificates.sh create generate-certificates.sh create
"{{ groups.ipaserver[0] }}" "{{ groups.ipaserver[0] }}"
...@@ -40,18 +40,18 @@ ...@@ -40,18 +40,18 @@
pre_tasks: pre_tasks:
- name: Remove "/root/ca-less-test" - name: Remove "/root/ca-less-test"
file: ansible.builtin.file:
path: "/root/ca-less-test" path: "/root/ca-less-test"
state: absent state: absent
- name: Generate "/root/ca-less-test" - name: Generate "/root/ca-less-test"
file: ansible.builtin.file:
path: "/root/ca-less-test" path: "/root/ca-less-test"
state: directory state: directory
mode: 0775 mode: 0775
- name: Copy CA certificate - name: Copy CA certificate
copy: ansible.builtin.copy:
src: "{{ playbook_dir }}/certificates/root-ca/cert.pem" src: "{{ playbook_dir }}/certificates/root-ca/cert.pem"
dest: "/root/ca-less-test/ca.crt" dest: "/root/ca-less-test/ca.crt"
owner: root owner: root
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
mode: "0644" mode: "0644"
- name: Copy p12 certificates - name: Copy p12 certificates
copy: ansible.builtin.copy:
src: "{{ playbook_dir }}/certificates/{{ item }}/{{ groups.ipaserver[0] }}/cert.p12" src: "{{ playbook_dir }}/certificates/{{ item }}/{{ groups.ipaserver[0] }}/cert.p12"
dest: "/root/ca-less-test/{{ item }}.p12" dest: "/root/ca-less-test/{{ item }}.p12"
owner: root owner: root
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment