瀏覽代碼

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

pull/1/head
10sr 10 年之前
父節點
當前提交
1037d5d191
共有 3 個檔案被更改,包括 13 行新增2 行删除
  1. +5
    -0
      ansible/debian_setup.yml
  2. +1
    -0
      ansible/hosts
  3. +7
    -2
      ansible/utilities.yml

+ 5
- 0
ansible/debian_setup.yml 查看文件

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

+ 1
- 0
ansible/hosts 查看文件

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

ansible/ansible.yml → 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

Loading…
取消
儲存