Browse Source

Merge branch 'master' of github.com:10sr/dotfiles

pull/1/head
10sr 10 years ago
parent
commit
1037d5d191
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

ansible/ansible.yml → ansible/utilities.yml View File

@@ -3,11 +3,16 @@
vars: vars:
packages: [rsync, git, htop] packages: [rsync, git, htop]
tasks: tasks:
- name: install packages for pacman
pacman: pkg={{ item }} state=installed
with_items: packages
sudo: yes
when: ansible_pkg_mgr == "pacman"
- name: install packages - name: install packages
action: pacman pkg={{ item }} state=installed
apt: name={{ item }} state=present
with_items: packages with_items: packages
sudo: yes sudo: yes
when: ansible_os_family == "Archlinux"
when: ansible_pkg_mgr == "apt"
- name: install script colortable16 - 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 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 - name: install script 256colors

Loading…
Cancel
Save