diff options
author | Alex Auvolat <alex@adnab.me> | 2020-01-18 15:39:34 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-07-15 15:49:52 +0200 |
commit | 317417910030c511cc5368d897dac2a91f91dd60 (patch) | |
tree | f2be25b07322a720817faf5364018d53f1348791 | |
parent | f844c9454f19e0fa6cfbef4edee4096b33b1b020 (diff) | |
download | infrastructure-317417910030c511cc5368d897dac2a91f91dd60.tar.gz infrastructure-317417910030c511cc5368d897dac2a91f91dd60.zip |
Achieve a working install on my VMs
-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 |