Unpin ansible-lint
This patch unpins ansible-lint to fix the failing gate. All lint errors have been fixed. Change-Id: I8d8b67ba5db19464470fc4c3887fd8dd78800e7a
This commit is contained in:
parent
f5c86dff4e
commit
dd4a795e3a
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
- name: legacy vars warning
|
- name: Legacy vars warning
|
||||||
debug:
|
ansible.builtin.debug:
|
||||||
msg: "WARNING: Using legacy atos_server_cert_location and atos_hsm_ip_address
|
msg: "WARNING: Using legacy atos_server_cert_location and atos_hsm_ip_address
|
||||||
variables. Please udpate your vars file."
|
variables. Please udpate your vars file."
|
||||||
|
@ -1,29 +1,31 @@
|
|||||||
---
|
---
|
||||||
- name: Create working directory
|
- name: Create working directory
|
||||||
file:
|
ansible.builtin.file:
|
||||||
path: "{{ atos_client_working_dir }}"
|
path: "{{ atos_client_working_dir }}"
|
||||||
state: directory
|
state: directory
|
||||||
mode: 0755
|
mode: '755'
|
||||||
|
|
||||||
- name: Download ATOS client ISO
|
- name: Download ATOS client ISO
|
||||||
get_url:
|
ansible.builtin.get_url:
|
||||||
url: "{{ atos_client_iso_location }}"
|
url: "{{ atos_client_iso_location }}"
|
||||||
dest: "{{ atos_client_working_dir }}/{{ atos_client_iso_name }}"
|
dest: "{{ atos_client_working_dir }}/{{ atos_client_iso_name }}"
|
||||||
force: no
|
mode: '644'
|
||||||
|
force: false
|
||||||
|
|
||||||
- name: Mount the iso for ATOS
|
- name: Mount the iso for ATOS
|
||||||
mount:
|
ansible.posix.mount:
|
||||||
path: /mnt/atos_iso
|
path: /mnt/atos_iso
|
||||||
src: "{{ atos_client_working_dir }}/{{ atos_client_iso_name }}"
|
src: "{{ atos_client_working_dir }}/{{ atos_client_iso_name }}"
|
||||||
fstype: iso9660
|
fstype: iso9660
|
||||||
state: mounted
|
state: mounted
|
||||||
|
|
||||||
- name: check for client software installation
|
- name: Check for client software installation
|
||||||
stat: path=/etc/proteccio/proteccio.rc.example
|
ansible.builtin.stat:
|
||||||
|
path: /etc/proteccio/proteccio.rc.example
|
||||||
register: atos_client
|
register: atos_client
|
||||||
|
|
||||||
- name: install client software
|
- name: Install client software
|
||||||
expect:
|
ansible.builtin.expect:
|
||||||
chdir: /mnt/atos_iso/Linux
|
chdir: /mnt/atos_iso/Linux
|
||||||
command: ./install.sh
|
command: ./install.sh
|
||||||
responses:
|
responses:
|
||||||
@ -32,40 +34,44 @@
|
|||||||
"Press the <Enter> key to exit the installation program": "\n"
|
"Press the <Enter> key to exit the installation program": "\n"
|
||||||
when: not atos_client.stat.exists
|
when: not atos_client.stat.exists
|
||||||
|
|
||||||
- name: allow using legacy variables for backwards compatibility
|
- name: Allow using legacy variables for backwards compatibility
|
||||||
set_fact:
|
ansible.builtin.set_fact:
|
||||||
args:
|
|
||||||
atos_hsms:
|
atos_hsms:
|
||||||
- name: Legacy variables HSM
|
- name: Legacy variables HSM
|
||||||
server_cert_location: "{{ atos_server_cert_location }}"
|
server_cert_location: "{{ atos_server_cert_location }}"
|
||||||
ip: "{{ atos_hsm_ip_address }}"
|
ip: "{{ atos_hsm_ip_address }}"
|
||||||
when: atos_hsms is not defined and atos_hsm_ip_address is defined
|
when: atos_hsms is not defined and atos_hsm_ip_address is defined
|
||||||
notify: legacy vars warning
|
notify: Legacy vars warning
|
||||||
|
|
||||||
- name: create proteccio.rc
|
- name: Create proteccio.rc
|
||||||
template:
|
ansible.builtin.template:
|
||||||
src: proteccio.rc.j2
|
src: proteccio.rc.j2
|
||||||
dest: /etc/proteccio/proteccio.rc
|
dest: /etc/proteccio/proteccio.rc
|
||||||
mode: 0644
|
mode: '644'
|
||||||
|
|
||||||
- name: Get the client cert
|
- name: Get the client cert
|
||||||
get_url:
|
ansible.builtin.get_url:
|
||||||
url: "{{ atos_client_cert_location }}"
|
url: "{{ atos_client_cert_location }}"
|
||||||
dest: /etc/proteccio/proteccio_client.crt
|
dest: /etc/proteccio/proteccio_client.crt
|
||||||
force: no
|
mode: '644'
|
||||||
|
force: false
|
||||||
|
|
||||||
- name: Get the client key
|
- name: Get the client key
|
||||||
get_url:
|
ansible.builtin.get_url:
|
||||||
url: "{{ atos_client_key_location }}"
|
url: "{{ atos_client_key_location }}"
|
||||||
dest: /etc/proteccio/proteccio_client.key
|
dest: /etc/proteccio/proteccio_client.key
|
||||||
force: no
|
mode: '644'
|
||||||
|
force: false
|
||||||
|
|
||||||
- name: Get the server cert
|
- name: Get the server cert
|
||||||
get_url:
|
ansible.builtin.get_url:
|
||||||
url: "{{ item.server_cert_location }}"
|
url: "{{ item.server_cert_location }}"
|
||||||
dest: "/etc/proteccio/{{ item.ip | replace('.', '_') }}.CRT"
|
dest: "/etc/proteccio/{{ item.ip | replace('.', '_') }}.CRT"
|
||||||
force: no
|
mode: '644'
|
||||||
|
force: false
|
||||||
loop: "{{ atos_hsms }}"
|
loop: "{{ atos_hsms }}"
|
||||||
|
|
||||||
- name: run nethsmstatus to confirm connection # noqa 301
|
- name: Run nethsmstatus to confirm connection
|
||||||
command: nethsmstatus
|
ansible.builtin.command: nethsmstatus
|
||||||
|
register: out
|
||||||
|
changed_when: out.rc != 0
|
||||||
|
@ -1,6 +1,2 @@
|
|||||||
# NOTE(elod.illes): ansible 6.0.0 introduced new rules that needs to be
|
ansible-lint
|
||||||
# fixed, like fqcn-builtins, etc. Due to Yoga release happens soon
|
|
||||||
# let's just cap ansible-lint. This needs a separate fix in the future
|
|
||||||
# to be able to remove the cap.
|
|
||||||
ansible-lint<6.0.0
|
|
||||||
reno
|
reno
|
||||||
|
Loading…
Reference in New Issue
Block a user