Target debian & archlinux
This commit is contained in:
parent
e28e2eec11
commit
6de369fbbb
5 changed files with 100 additions and 51 deletions
32
playbook.yml
32
playbook.yml
|
|
@ -1,32 +0,0 @@
|
|||
- hosts: localhost
|
||||
pre_tasks:
|
||||
- name: install packages
|
||||
become: true
|
||||
package:
|
||||
name: '{{ item }}'
|
||||
state: present
|
||||
loop: '{{ packages }}'
|
||||
- name: add gitlab to known hosts
|
||||
include_role:
|
||||
name: common
|
||||
tasks_from: 'known_hosts.yml'
|
||||
vars:
|
||||
user: '{{ ansible_user_id }}'
|
||||
items:
|
||||
- { domain: '{{ gitlab_domain }}', key: '{{ gitlab_host_key }}' }
|
||||
roles:
|
||||
- common
|
||||
tasks:
|
||||
- import_tasks: 'tasks/dotfiles.yml'
|
||||
- import_tasks: 'tasks/neovim.yml'
|
||||
- name: gather package facts
|
||||
package_facts:
|
||||
manager: pacman
|
||||
- import_tasks: 'tasks/aur.yml'
|
||||
when: aur_packages|map(attribute='package_name')|list is not subset(ansible_facts.packages)
|
||||
- import_tasks: 'tasks/docker.yml'
|
||||
- name: setup python versions
|
||||
include_tasks: 'tasks/python.yml'
|
||||
loop: '{{ python_versions }}'
|
||||
vars_files:
|
||||
- 'vars.yml'
|
||||
Loading…
Add table
Add a link
Reference in a new issue