diff --git a/ansible/debian_setup.yml b/ansible/debian_setup.yml new file mode 100644 index 0000000..02a10eb --- /dev/null +++ b/ansible/debian_setup.yml @@ -0,0 +1,5 @@ +--- +- hosts: all + vars: + tasks: + - name: put interfaces file for fixed IP diff --git a/ansible/hosts b/ansible/hosts new file mode 100644 index 0000000..46b0635 --- /dev/null +++ b/ansible/hosts @@ -0,0 +1 @@ +debian-vb ansible_ssh_host=192.168.2.103 ansible_ssh_user=yuk diff --git a/ansible/utilities.yml b/ansible/utilities.yml index 78cab26..ea088d7 100644 --- a/ansible/utilities.yml +++ b/ansible/utilities.yml @@ -3,11 +3,16 @@ vars: packages: [rsync, git, htop] tasks: + - name: install packages for pacman + pacman: pkg={{ item }} state=installed + with_items: packages + sudo: yes + when: ansible_pkg_mgr == "pacman" - name: install packages - action: pacman pkg={{ item }} state=installed + apt: name={{ item }} state=present with_items: packages sudo: yes - when: ansible_os_family == "Archlinux" + when: ansible_pkg_mgr == "apt" - name: install script colortable16 get_url: url=https://gist.github.com/10sr/6852317/raw/colortable16.sh dest={{ ansible_env.HOME }}/.local/bin/colortable16.sh mode=0755 - name: install script 256colors