lint fixes
This commit is contained in:
parent
8b1b0b8dc5
commit
04a8acf0aa
6 changed files with 12 additions and 20 deletions
|
|
@ -69,4 +69,3 @@
|
|||
- root
|
||||
- admin
|
||||
- test
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,4 @@
|
|||
---
|
||||
#hostname: centos01.local.mrwho.ru
|
||||
#ip4_addr: 172.20.21.101/24
|
||||
#ip4_gate: 172.20.21.1
|
||||
#ip4_dns:
|
||||
# - 172.20.21.1
|
||||
# - 192.168.1.1
|
||||
#reboot_system: false
|
||||
|
||||
epel_repo_url: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-{{ ansible_facts.distribution_major_version }}.noarch.rpm"
|
||||
epel_repo_gpg_key_url: "https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-{{ ansible_facts.distribution_major_version }}"
|
||||
|
|
|
|||
|
|
@ -4,12 +4,12 @@
|
|||
|
||||
- block:
|
||||
- name: Copy certificate to temporary location
|
||||
copy:
|
||||
ansible.builtin.copy:
|
||||
src: "{{ install_root_cert_pem }}"
|
||||
dest: "{{ install_root_cert_tmp_path }}"
|
||||
|
||||
- name: Add certificate to Mac OS keychain
|
||||
command: security add-trusted-cert -d -r trustRoot -k "/Library/Keychains/System.keychain" "{{ install_root_cert_tmp_path }}"
|
||||
ansible.builtin.command: security add-trusted-cert -d -r trustRoot -k "/Library/Keychains/System.keychain" "{{ install_root_cert_tmp_path }}"
|
||||
|
||||
# - name: Add certificate to Mac OS (openssl)
|
||||
# copy:
|
||||
|
|
@ -21,6 +21,6 @@
|
|||
|
||||
always:
|
||||
- name: Remove temporary certificate
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: "{{ install_root_cert_tmp_path }}"
|
||||
state: absent
|
||||
|
|
|
|||
|
|
@ -1,16 +1,16 @@
|
|||
---
|
||||
- name: Make sure the folder exists (Debian, Ubuntu)
|
||||
file:
|
||||
ansible.builtin.file:
|
||||
path: /usr/local/share/ca-certificates
|
||||
state: directory
|
||||
|
||||
# Note that the .crt is actually a .pem renamed
|
||||
- name: Copy the certificate (Debian, Ubuntu)
|
||||
copy:
|
||||
ansible.builtin.copy:
|
||||
src: "{{ install_root_cert_pem }}"
|
||||
dest: "/usr/local/share/ca-certificates/{{ install_root_cert_pem | basename }}.crt"
|
||||
register: result
|
||||
|
||||
- name: Update CA Trust (Debian, Ubuntu)
|
||||
command: update-ca-certificates
|
||||
ansible.builtin.command: update-ca-certificates
|
||||
when: result is changed
|
||||
|
|
|
|||
Loading…
Reference in a new issue