Browse Source

add debian_setup.yml

pull/1/head
10sr 10 years ago
parent
commit
7c29edadba
3 changed files with 13 additions and 2 deletions
  1. +5
    -0
      ansible/debian_setup.yml
  2. +1
    -0
      ansible/hosts
  3. +7
    -2
      ansible/utilities.yml

+ 5
- 0
ansible/debian_setup.yml View File

@@ -0,0 +1,5 @@
---
- hosts: all
vars:
tasks:
- name: put interfaces file for fixed IP

+ 1
- 0
ansible/hosts View File

@@ -0,0 +1 @@
debian-vb ansible_ssh_host=192.168.2.103 ansible_ssh_user=yuk

+ 7
- 2
ansible/utilities.yml View File

@@ -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


Loading…
Cancel
Save