ansible-lint fixes for host group playbooks

This commit is contained in:
Timo Makinen 2022-10-31 18:02:19 +00:00
parent 112d51c67f
commit 2e97e2af9e
28 changed files with 281 additions and 204 deletions

View file

@ -1,7 +1,9 @@
---
- import_playbook: "include/deploy-kvm-guest.yml myhosts=shell"
- name: Deploy KVM virtual machines
ansible.builtin.import_playbook: >-
include/deploy-kvm-guest.yml myhosts=shell
- name: configure instance
- name: Configure instance
hosts: shell
user: root
gather_facts: true
@ -26,8 +28,8 @@
plaintext: true
tasks:
- name: install extra package groups
dnf:
- name: Install extra package groups
ansible.builtin.dnf:
name:
- "@development"
- "@fonts"
@ -38,8 +40,8 @@
- fprintd-pam
- gnome-initial-setup
- name: install extra packages
package:
- name: Install extra packages
ansible.builtin.package:
name: "{{ package }}"
state: installed
with_items:
@ -69,8 +71,8 @@
loop_control:
loop_var: package
- name: add software packaged in roles
include_role:
- name: Add software packaged in roles
ansible.builtin.include_role:
name: "{{ role }}"
with_items:
- cups
@ -84,8 +86,8 @@
loop_control:
loop_var: role
- name: add home.foo.sh hosts to ssh config
copy:
- name: Add home.foo.sh hosts to ssh config
ansible.builtin.copy:
dest: /etc/ssh/ssh_config.d/home.foo.sh.conf
content: |
Host *.home.foo.sh !gw.home.foo.sh