add cleanup and change lint_work_dir
add pause so we can have time to check managed nodes filesystem
This commit is contained in:
parent
f5edd6f4a4
commit
8afe04bd3f
26
venv.yml
26
venv.yml
@ -7,7 +7,7 @@
|
||||
vars:
|
||||
ansible_lint_venv_dir : /tmp/ansible-lint-venv
|
||||
git_repo_to_lint : https://gitea.thezengarden.net/chris/ansible-lint-poc.git
|
||||
lint_work_dir : /tmp/repositories
|
||||
lint_work_dir : /tmp/lint_repository
|
||||
|
||||
|
||||
tasks:
|
||||
@ -25,6 +25,12 @@
|
||||
state: present
|
||||
|
||||
|
||||
- name: Disable CRB repository as it is no longer neded
|
||||
ansible.builtin.command:
|
||||
cmd: dnf config-manager --disable crb
|
||||
changed_when: true
|
||||
|
||||
|
||||
- name: Create VirtualEnv and Install ansible-lint
|
||||
ansible.builtin.pip:
|
||||
name: ansible-lint==6.22.0
|
||||
@ -67,3 +73,21 @@
|
||||
dest: "{{ lint_work_dir }}"
|
||||
version: main
|
||||
|
||||
|
||||
- name: Clone target repository into
|
||||
ansible.builtin.pause:
|
||||
seconds: 30
|
||||
|
||||
|
||||
- name: Cleanup repository destination
|
||||
ansible.builtin.file:
|
||||
path: "{{ lint_work_dir }}"
|
||||
state: absent
|
||||
|
||||
|
||||
- name: Cleanup installed packages
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- python3-setuptools
|
||||
- virtualenv
|
||||
state: absent
|
||||
|
Loading…
x
Reference in New Issue
Block a user