lint fixes
This commit is contained in:
parent
8b1b0b8dc5
commit
04a8acf0aa
6 changed files with 12 additions and 20 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
- name: Initial Rocky9 Configuration
|
- name: Initial Rocky9 Configuration
|
||||||
|
|
||||||
hosts:
|
hosts:
|
||||||
- rocky9-template
|
- rocky9-template
|
||||||
# kuber-node01
|
# kuber-node01
|
||||||
# - 172.20.21.193
|
# - 172.20.21.193
|
||||||
|
|
@ -18,8 +18,8 @@
|
||||||
- openssh
|
- openssh
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
#ansible_ssh_user: root
|
# ansible_ssh_user: root
|
||||||
#ansible_ssh_password: nmklop90
|
# ansible_ssh_password: nmklop90
|
||||||
epel_repo: true
|
epel_repo: true
|
||||||
reboot_system: false
|
reboot_system: false
|
||||||
hostname: "{{ ansible_hostname }}.local.mrwho.ru"
|
hostname: "{{ ansible_hostname }}.local.mrwho.ru"
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
openssh_enable_persourcepenalties: true
|
openssh_enable_persourcepenalties: true
|
||||||
openssh_persource_authfail_penalty: "10s" # Aggressive penalty
|
openssh_persource_authfail_penalty: "10s" # Aggressive penalty
|
||||||
openssh_persource_maxstartups: "5:30:10" # Very restrictive
|
openssh_persource_maxstartups: "5:30:10" # Very restrictive
|
||||||
# Disable all port forwarding
|
# Disable all port forwarding
|
||||||
openssh_disable_forwarding_comprehensive: false
|
openssh_disable_forwarding_comprehensive: false
|
||||||
openssh_x11_forwarding: false
|
openssh_x11_forwarding: false
|
||||||
# Restrict to strongest cryptography only
|
# Restrict to strongest cryptography only
|
||||||
|
|
@ -69,4 +69,3 @@
|
||||||
- root
|
- root
|
||||||
- admin
|
- admin
|
||||||
- test
|
- 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_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 }}"
|
epel_repo_gpg_key_url: "https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-{{ ansible_facts.distribution_major_version }}"
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
---
|
---
|
||||||
install_root_cert_pem: root_ca.crt
|
install_root_cert_pem: root_ca.crt
|
||||||
|
|
|
||||||
|
|
@ -4,12 +4,12 @@
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
- name: Copy certificate to temporary location
|
- name: Copy certificate to temporary location
|
||||||
copy:
|
ansible.builtin.copy:
|
||||||
src: "{{ install_root_cert_pem }}"
|
src: "{{ install_root_cert_pem }}"
|
||||||
dest: "{{ install_root_cert_tmp_path }}"
|
dest: "{{ install_root_cert_tmp_path }}"
|
||||||
|
|
||||||
- name: Add certificate to Mac OS keychain
|
- 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)
|
# - name: Add certificate to Mac OS (openssl)
|
||||||
# copy:
|
# copy:
|
||||||
|
|
@ -21,6 +21,6 @@
|
||||||
|
|
||||||
always:
|
always:
|
||||||
- name: Remove temporary certificate
|
- name: Remove temporary certificate
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ install_root_cert_tmp_path }}"
|
path: "{{ install_root_cert_tmp_path }}"
|
||||||
state: absent
|
state: absent
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,16 @@
|
||||||
---
|
---
|
||||||
- name: Make sure the folder exists (Debian, Ubuntu)
|
- name: Make sure the folder exists (Debian, Ubuntu)
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: /usr/local/share/ca-certificates
|
path: /usr/local/share/ca-certificates
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
# Note that the .crt is actually a .pem renamed
|
# Note that the .crt is actually a .pem renamed
|
||||||
- name: Copy the certificate (Debian, Ubuntu)
|
- name: Copy the certificate (Debian, Ubuntu)
|
||||||
copy:
|
ansible.builtin.copy:
|
||||||
src: "{{ install_root_cert_pem }}"
|
src: "{{ install_root_cert_pem }}"
|
||||||
dest: "/usr/local/share/ca-certificates/{{ install_root_cert_pem | basename }}.crt"
|
dest: "/usr/local/share/ca-certificates/{{ install_root_cert_pem | basename }}.crt"
|
||||||
register: result
|
register: result
|
||||||
|
|
||||||
- name: Update CA Trust (Debian, Ubuntu)
|
- name: Update CA Trust (Debian, Ubuntu)
|
||||||
command: update-ca-certificates
|
ansible.builtin.command: update-ca-certificates
|
||||||
when: result is changed
|
when: result is changed
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
#- name: Check that the root certificate exists
|
# - name: Check that the root certificate exists
|
||||||
# become: no
|
# become: no
|
||||||
# local_action: "stat path={{ install_root_cert_pem }}"
|
# local_action: "stat path={{ install_root_cert_pem }}"
|
||||||
# register: result
|
# register: result
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue