diff --git a/ansible.cfg b/ansible.cfg index 7ae1441..55f3120 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,7 +1,3 @@ [defaults] inventory=inventory private_key_file=~/.ssh/id_ed25519 - -[tiijay] -inventory=inventory2 -private_key_file=~/.ssh/id_ed25519 diff --git a/inventory b/inventory index 578cd04..e1421f6 100644 --- a/inventory +++ b/inventory @@ -1,4 +1,4 @@ -[default] +[lxc] j-agent-01 j-agent-02 j-agent-03 @@ -8,6 +8,14 @@ jenkins gitea pihole -[tiijay] +[vm] microk8s nginx +[vm:vars] +ansible_user=tiijay + +[vserver] +ionos-ubuntu-01 +[vserver:vars] +ansible_user=root + diff --git a/system-upgrade.yml b/system-upgrade.yml index 984121c..581139e 100644 --- a/system-upgrade.yml +++ b/system-upgrade.yml @@ -1,6 +1,6 @@ --- -- hosts: default +- hosts: all become: true tasks: