diff options
-rw-r--r-- | ansible/lxvm | 5 | ||||
-rw-r--r-- | ansible/roles/common/tasks/main.yml | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/ansible/lxvm b/ansible/lxvm new file mode 100644 index 0000000..8d31f55 --- /dev/null +++ b/ansible/lxvm @@ -0,0 +1,5 @@ +[cluster_nodes] +#ubuntu1 ansible_host=192.168.42.10 +debian1 ansible_host=192.168.42.20 ansible_user=root public_ip=192.168.42.20 private_ip=192.168.42.20 interface=enp1s0 dns_server=208.67.222.222 +debian2 ansible_host=192.168.42.21 ansible_user=root public_ip=192.168.42.21 private_ip=192.168.42.21 interface=enp1s0 dns_server=208.67.222.222 +debian3 ansible_host=192.168.42.22 ansible_user=root public_ip=192.168.42.22 private_ip=192.168.42.22 interface=enp1s0 dns_server=208.67.222.222 diff --git a/ansible/roles/common/tasks/main.yml b/ansible/roles/common/tasks/main.yml index b4d00bb..95406b3 100644 --- a/ansible/roles/common/tasks/main.yml +++ b/ansible/roles/common/tasks/main.yml @@ -3,6 +3,7 @@ that: - "ansible_architecture == 'aarch64' or ansible_architecture == 'armv7l' or ansible_architecture == 'x86_64'" - "ansible_os_family == 'Debian'" + - "ansible_distribution_version == '10'" - name: "Upgrade system" apt: @@ -15,6 +16,7 @@ - name: "Install base tools" apt: name: + - sudo - vim - htop - screen |