feat(actions): Adds actions & lint (#1)
All checks were successful
Master branch: build & lint / build (push) Successful in 1m0s
All checks were successful
Master branch: build & lint / build (push) Successful in 1m0s
Adds an action to perform some linting actions on ansible and the yaml files, both on push onto master and on pull requests Reviewed-on: #1
This commit is contained in:
parent
9dc88072d5
commit
93bb0b0742
18 changed files with 306 additions and 39 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