fix(actions): Adds actions to lint ansible and yaml
This commit is contained in:
parent
d20db64817
commit
43e7b6850d
17 changed files with 303 additions and 38 deletions
|
@ -1,14 +1,14 @@
|
|||
---
|
||||
# Ensures the .ssh directory exists
|
||||
- name: "creates the .ssh root directory"
|
||||
file:
|
||||
- name: "Creates the .ssh root directory"
|
||||
ansible.builtin.file:
|
||||
path: "/root/.ssh"
|
||||
state: directory
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0700
|
||||
- name: "Install root SSH keys"
|
||||
template:
|
||||
ansible.builtin.template:
|
||||
src: authorized_keys.j2
|
||||
dest: /root/.ssh/authorized_keys
|
||||
owner: root
|
||||
|
@ -17,8 +17,8 @@
|
|||
# Delete users you don't need
|
||||
# respectively you can also *add* users
|
||||
# https://docs.ansible.com/ansible/latest/collections/ansible/builtin/user_module.html#ansible-collections-ansible-builtin-user-module
|
||||
- name: "Delete usual cloud users user"
|
||||
user:
|
||||
- name: "Delete usual cloud users user" # noqa: loop-var-prefix
|
||||
ansible.builtin.user:
|
||||
name: "{{ item }}"
|
||||
state: absent
|
||||
remove: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue