From 6b2177d8ee8ccb953541c994514aee9ead008e7b Mon Sep 17 00:00:00 2001
From: Santiago Lo Coco <santilococo.01@gmail.com>
Date: Sun, 14 Apr 2024 19:33:16 +0200
Subject: [PATCH] Fix more bugs

---
 .ansible-lint                         | 6 ++++++
 .pre-commit-config.yaml               | 1 -
 .woodpecker.yml                       | 5 +++--
 slococo/playground/galaxy.yml         | 1 +
 slococo/playground/playbooks/main.yml | 8 +++-----
 slococo/playground/requirements.yml   | 1 -
 6 files changed, 13 insertions(+), 9 deletions(-)
 create mode 100644 .ansible-lint

diff --git a/.ansible-lint b/.ansible-lint
new file mode 100644
index 0000000..50a6ab4
--- /dev/null
+++ b/.ansible-lint
@@ -0,0 +1,6 @@
+skip_list:
+    - galaxy[no-changelog]
+
+mock_roles:
+    - slococo.playground.ssh_config
+    - slococo.playground.local_accounts
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 04cc528..312ea08 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -14,4 +14,3 @@ repos:
     rev: 23.7.0
     hooks:
       - id: black
-
diff --git a/.woodpecker.yml b/.woodpecker.yml
index 6176612..1777e56 100644
--- a/.woodpecker.yml
+++ b/.woodpecker.yml
@@ -6,7 +6,8 @@ steps:
     image: alpine/git
     commands:
       - apk add ansible ansible-lint
-      - cd slococo/playground
-      - ansible-galaxy collection install .
+      #- cd slococo/playground
+      #- ansible-galaxy collection install .
+      - ansible-galaxy collection install -r slococo/playground/requirements.yml
       - ansible-lint
       - ls -al
diff --git a/slococo/playground/galaxy.yml b/slococo/playground/galaxy.yml
index cdc7105..c4d56d9 100644
--- a/slococo/playground/galaxy.yml
+++ b/slococo/playground/galaxy.yml
@@ -16,6 +16,7 @@ tags:
   - users
   - ssh
   - config
+  - tools
 
 repository: https://git.slc.ar/slococo/ansible-playground
 issues: https://git.slc.ar/slococo/ansible-playground/issues
diff --git a/slococo/playground/playbooks/main.yml b/slococo/playground/playbooks/main.yml
index 0798ba2..41854dd 100644
--- a/slococo/playground/playbooks/main.yml
+++ b/slococo/playground/playbooks/main.yml
@@ -1,18 +1,16 @@
 - name: Configure SSH and add user accounts
   hosts: all
   become: true
-  collections:
-    - slococo.playground
   gather_facts: true
 
   roles:
-    - role: ssh_config
-    - role: local_accounts
+    - role: slococo.playground.ssh_config
+    - role: slococo.playground.local_accounts
       vars:
         accounts:
           - name: local_adm
             shell: /bin/bash
-            userid:  38000087
+            userid: 38000087
           - name: local_log
             shell: /bin/sh
             userid: 38000088
diff --git a/slococo/playground/requirements.yml b/slococo/playground/requirements.yml
index 14ad2a2..987e032 100644
--- a/slococo/playground/requirements.yml
+++ b/slococo/playground/requirements.yml
@@ -2,4 +2,3 @@
 collections:
   - name: community.crypto
     version: ">=2.0.0"
-