ansible/roles/container/tasks/main.yml

48 lines
1.8 KiB
YAML
Raw Normal View History

2014-08-06 06:15:21 +00:00
- name: Write pacman.conf
copy: src=pacman.conf dest=/etc/pacman.conf mode=0644
2014-09-07 06:53:20 +00:00
- name: Write mirrorlist
copy: src=mirrorlist dest=/etc/pacman.d/mirrorlist mode=0644
2014-08-18 08:12:20 +00:00
- name: Mask services
file: src=/dev/null dest=/etc/systemd/system/{{ item }} state=link
with_items: masked_services
- name: Stop services
service: name={{ item }} state=stopped enabled=no
with_items: masked_services
2014-08-23 18:15:50 +00:00
- user: name=root shell=/bin/bash
- name: delete oh-my-zsh repo
file: path=/root/.oh-my-zsh state=absent
- name: delete .zshrc
file: path=/root/.zshrs state=absent
2014-09-07 06:53:58 +00:00
- name: Allow wheel group to use sudo
lineinfile: "dest=/etc/sudoers state=present regexp='^%wheel' line='%wheel ALL=(ALL) NOPASSWD: ALL'"
- name: Write mirrorlist
copy: src=sudoers dest=/etc/sudoers mode=0644
- user: name=admin shell=/bin/bash groups=wheel append=yes
- name: Create ~admin/.ssh
file: path=/home/admin/.ssh state=directory
- name: SSH Keys
copy: src=authorized_keys dest=/home/admin/.ssh/authorized_keys
2014-09-07 06:53:58 +00:00
- name: deploy dotfiles
copy: src="{{ item[0] }}" dest="{{ item[1].dest }}/.{{ item[0] }}" owner="{{ item[1].owner }}" group="{{ item[1].group }}"
with_nested:
- ['bashrc', 'dircolors', 'vimrc']
-
- {dest: "/home/admin", owner: "admin", group: "admin"}
- {dest: "/root", owner: "root", group: "root"}
2014-08-18 08:12:20 +00:00
- mount: name=/run/systemd/journal/ src=/mnt/journal fstype=none opts=bind,ro state=present
2014-09-07 06:53:58 +00:00
2014-08-23 18:15:50 +00:00
- name: backup directory
file: path=/root/.vim.backupdir state=directory
2015-01-14 20:17:57 +00:00
- name: create link-dev-log.service
copy: src=link-dev-log.service dest=/etc/systemd/system/link-dev-log.service mode=0644
- name: enable link-dev-log.service
file: src=/etc/systemd/system/link-dev-log.service dest=/etc/systemd/system/multi-user.target.wants/link-dev-log.service state=link
- include: ssh.yml