destroy all
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Kasper Juul Hermansen 2022-02-19 22:01:46 +01:00
parent baae7a8d7e
commit d74cdfa143
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23
2 changed files with 3 additions and 16 deletions

View File

@ -14,18 +14,5 @@
reload: yes
when: ansible_all_ipv6_addresses
# Setup user
- name: Add the user 'kjuulh' and add it to 'sudo'
user:
name: kjuulh
group: sudo
state: present
- name: "add authorized keys"
authorized_key:
user: kjuulh
state: present
key: "{{ lookup('file', pub_key) }}"
- name: Wait for apt to unlock
shell: while sudo fuser /var/lib/dpkg/lock >/dev/null >2&1; do sleep 5; done;

View File

@ -1,10 +1,10 @@
variable "serverctl_master_count" {
default = 1
default = 0
}
variable "serverctl_node_count" {
default = 1
default = 0
}
@ -76,7 +76,7 @@ resource "local_file" "hosts_cfg" {
content = templatefile("${path.module}/templates/hosts.tpl",
{
serverctl_masters = hcloud_server.serverctl_master.*.ipv4_address
serverctl_nodes = hcloud_server.serverctl_node.*.ipv4_address
serverctl_nodes = hcloud_server.serverctl_node.*.ipv4_address
}
)
filename = "ansible/inventory/hosts.cfg"