add ansible playbook
This commit is contained in:
parent
b77244e425
commit
31d6a880c7
|
|
@ -51,6 +51,6 @@ ln -sf /usr/local/cbsd/share/autocompletion/zsh/_cbsd ~/.oh-my-zsh/completions/_
|
||||||
ansible-galaxy install gantsign.oh-my-zsh
|
ansible-galaxy install gantsign.oh-my-zsh
|
||||||
ansible-galaxy install gantsign.antigen
|
ansible-galaxy install gantsign.antigen
|
||||||
ansible-galaxy install gantsign.antigen_bundles
|
ansible-galaxy install gantsign.antigen_bundles
|
||||||
ansible-playbook --ask-pass -b -K ./skel.yml
|
ansible-playbook --ask-pass -b -K --limit="host1,host2" ./skel.yml
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,60 @@
|
||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
- name: apt update
|
||||||
|
apt: update_cache=true
|
||||||
|
|
||||||
|
- name: Install list of packages
|
||||||
|
apt: name=software-properties-common state=present update_cache=true
|
||||||
|
with_items:
|
||||||
|
- locales
|
||||||
|
- vim
|
||||||
|
- mdadm
|
||||||
|
- sudo
|
||||||
|
- ssh
|
||||||
|
- dpkg-dev
|
||||||
|
- linux-headers-generic
|
||||||
|
- linux-image-generic
|
||||||
|
- console-cyrillic
|
||||||
|
- tasksel
|
||||||
|
- man
|
||||||
|
- nload
|
||||||
|
- sysstat
|
||||||
|
- htop
|
||||||
|
- iotop
|
||||||
|
- build-essential
|
||||||
|
- tmux
|
||||||
|
- mtr-tiny
|
||||||
|
- screen
|
||||||
|
- zsh
|
||||||
|
- mc
|
||||||
|
- sudo
|
||||||
|
- git
|
||||||
|
- wget
|
||||||
|
- software-properties-common
|
||||||
|
- traceroute
|
||||||
|
- gawk
|
||||||
|
- aptitude
|
||||||
|
- fakeroot
|
||||||
|
- build-essential
|
||||||
|
- git
|
||||||
|
- libncurses5
|
||||||
|
- libncurses5-dev
|
||||||
|
- libnewt-dev
|
||||||
|
- libnet-ip-perl
|
||||||
|
- libproc-daemon-perl
|
||||||
|
- libproc-pid-file-perl
|
||||||
|
- libswitch-perl
|
||||||
|
- libdbd-mysql
|
||||||
|
- libdbi-perl
|
||||||
|
- libdbd-mysql-perl
|
||||||
|
- dkms
|
||||||
|
- iptables-dev
|
||||||
|
- pkg-config
|
||||||
|
- cpufrequtils
|
||||||
|
- ipset
|
||||||
|
- iptables-persistent
|
||||||
|
- ethstats
|
||||||
|
- ethtool
|
||||||
|
- libelf-dev
|
||||||
|
- irqbalance
|
||||||
|
- curl
|
||||||
8
skel.yml
8
skel.yml
|
|
@ -1,4 +1,4 @@
|
||||||
- hosts: smith
|
- hosts: all
|
||||||
tasks:
|
tasks:
|
||||||
- name: apt update
|
- name: apt update
|
||||||
apt: update_cache=true
|
apt: update_cache=true
|
||||||
|
|
@ -37,7 +37,7 @@
|
||||||
# dest: /home/zaika/.oh-my-zsh/themes/powerlevel10k
|
# dest: /home/zaika/.oh-my-zsh/themes/powerlevel10k
|
||||||
# become: no
|
# become: no
|
||||||
|
|
||||||
- hosts: smith
|
- hosts: all
|
||||||
roles:
|
roles:
|
||||||
- role: gantsign.antigen
|
- role: gantsign.antigen
|
||||||
antigen_version: '2.2.3'
|
antigen_version: '2.2.3'
|
||||||
|
|
@ -77,7 +77,7 @@
|
||||||
# - name: zsh-syntax-highlighting # `name` is required (any valid file name will do so long as it's unique for the bundles)
|
# - name: zsh-syntax-highlighting # `name` is required (any valid file name will do so long as it's unique for the bundles)
|
||||||
# url: zsh-users/zsh-syntax-highlighting
|
# url: zsh-users/zsh-syntax-highlighting
|
||||||
|
|
||||||
- hosts: smith
|
- hosts: all
|
||||||
tasks:
|
tasks:
|
||||||
- name: Clone Powerline zsh theme
|
- name: Clone Powerline zsh theme
|
||||||
git:
|
git:
|
||||||
|
|
@ -85,7 +85,7 @@
|
||||||
dest: /home/zaika/skel
|
dest: /home/zaika/skel
|
||||||
become: no
|
become: no
|
||||||
|
|
||||||
- hosts: smith
|
- hosts: all
|
||||||
tasks:
|
tasks:
|
||||||
- name: Create symbolic link
|
- name: Create symbolic link
|
||||||
file:
|
file:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue