diff --git a/linux-ubuntu/ansible.cfg b/linux-ubuntu/ansible.cfg new file mode 100644 index 0000000..23055e3 --- /dev/null +++ b/linux-ubuntu/ansible.cfg @@ -0,0 +1,2 @@ +[defaults] +private_key_file = /home/vlad/.ssh/id_rsa \ No newline at end of file diff --git a/linux-ubuntu/inventory.yml b/linux-ubuntu/inventory.yml new file mode 100644 index 0000000..5051aee --- /dev/null +++ b/linux-ubuntu/inventory.yml @@ -0,0 +1,3 @@ +all: + hosts: + 172.16.1.112 \ No newline at end of file diff --git a/linux-ubuntu/main.yml b/linux-ubuntu/main.yml new file mode 100644 index 0000000..5bee17e --- /dev/null +++ b/linux-ubuntu/main.yml @@ -0,0 +1,11 @@ +--- +- hosts: all + roles: + - common + become: yes + + tasks: + - name: Update apt cache and make sure Vim is installed + apt: + name: vim + update_cache: yes \ No newline at end of file diff --git a/linux-ubuntu/roles/common/vars/main.yml b/linux-ubuntu/roles/common/vars/main.yml new file mode 100644 index 0000000..db8f37b --- /dev/null +++ b/linux-ubuntu/roles/common/vars/main.yml @@ -0,0 +1,10 @@ +$ANSIBLE_VAULT;1.1;AES256 +30663731353038306664656333313032613039636134333435383762613735666562653432323363 +6637363832633337623436396163333237613534373033340a623362313361313565636332343363 +63343838656334373730303139616466323061383338343939313662356466646465333363666662 +3233376264313864300a323830666635323838643530393436393736323336343138383332323365 +38623962633165316262633963323461376530393133646532376561396130313565646663633766 +65373538393233373633393031323137323462343938323262636439663133323237303335616563 +64656262353931393635396361343131356632623836393835616462653439353734366461323432 +35373562306261666330663162613731363263623034623463646662346335366239306366626239 +3030