5 Commits

Author SHA1 Message Date
bc062e2035 Update dependency ansible-lint to v6.2.2
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is passing
2022-06-09 07:02:42 +00:00
30c77a7b79 Update dependency ansible to v5.9.0
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is passing
2022-06-09 07:02:22 +00:00
545a578951 Merge pull request 'Configure Renovate' (#2) from renovate/configure into main
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #2
2022-06-03 09:21:02 +02:00
922fe738a9 Add renovate.json
Some checks failed
continuous-integration/drone/pr Build is failing
continuous-integration/drone/push Build is passing
2022-06-03 07:02:23 +00:00
6d71a5bd31 use scoped var, pass it down the line
All checks were successful
continuous-integration/drone/push Build is passing
2022-05-31 09:16:57 +02:00
4 changed files with 12 additions and 6 deletions

View File

@ -8,9 +8,10 @@
new_hetzner_server_image: debian-10
new_hetzner_delete_protection: false
new_hetzner_rebuild_protection: false
new_hetzner_user_accounts: files/members.yml
pre_tasks:
- name: Include resource variables
include_vars: files/members.yml
include_vars: "{{ new_hetzner_user_accounts }}"
tasks:
- name: Run the role under test
block:

3
renovate.json Normal file
View File

@ -0,0 +1,3 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
}

View File

@ -1,5 +1,5 @@
ansible-lint==6.0.0
ansible==5.4.0
ansible-lint==6.2.2
ansible==5.9.0
molecule-docker==1.1.0
molecule-hetznercloud==1.3.0
molecule==3.6.1

View File

@ -4,13 +4,13 @@
that: "{{ item }} is defined"
fail_msg: "You must define the '{{ item }}' variable"
with_items:
- members
- new_hetzner_user_accounts
- new_hetzner_server_image
- new_hetzner_server_name
- new_hetzner_server_type
- name: Include resource variables
include_vars: "{{ members }}"
include_vars: "{{ new_hetzner_user_accounts }}"
tags:
- molecule-notest
@ -66,7 +66,7 @@
- name: Run the add-users role on the new instance
vars:
members: "{{ members }}"
add_users_user_accounts: "{{ new_hetzner_user_accounts }}"
delegate_to: root-new-instance
import_role:
name: autonomic.add-users
@ -74,6 +74,8 @@
- molecule-notest
- name: Run the sshd role on the new instance
vars:
sshd_user_accounts: "{{ new_hetzner_user_accounts }}"
delegate_to: root-new-instance
import_role:
name: autonomic.sshd