mirror of
https://github.com/luzifer-ansible/pacman.git
synced 2024-12-22 19:01:17 +00:00
Initial version
This commit is contained in:
commit
716060c236
3 changed files with 49 additions and 0 deletions
5
defaults/main.yml
Normal file
5
defaults/main.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
pacman_packages: []
|
||||||
|
|
||||||
|
...
|
32
meta/main.yml
Normal file
32
meta/main.yml
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
---
|
||||||
|
galaxy_info:
|
||||||
|
author: Knut Ahlers
|
||||||
|
description: |
|
||||||
|
Manage APT packages through variables
|
||||||
|
|
||||||
|
license: Apache
|
||||||
|
min_ansible_version: 2.3
|
||||||
|
|
||||||
|
platforms:
|
||||||
|
- name: Archlinux
|
||||||
|
|
||||||
|
categories:
|
||||||
|
#- cloud
|
||||||
|
#- cloud:ec2
|
||||||
|
#- cloud:gce
|
||||||
|
#- cloud:rax
|
||||||
|
#- clustering
|
||||||
|
#- database
|
||||||
|
#- database:nosql
|
||||||
|
#- database:sql
|
||||||
|
#- development
|
||||||
|
#- monitoring
|
||||||
|
#- networking
|
||||||
|
- packaging
|
||||||
|
- system
|
||||||
|
#- web
|
||||||
|
|
||||||
|
dependencies: []
|
||||||
|
# List your role dependencies here, one per line.
|
||||||
|
# Be sure to remove the '[]' above if you add dependencies
|
||||||
|
# to this list.
|
12
tasks/main.yml
Normal file
12
tasks/main.yml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- name: Install Pacman packages
|
||||||
|
pacman:
|
||||||
|
force: '{{ item.force | default("no") }}'
|
||||||
|
name: '{{ item.name }}'
|
||||||
|
recurse: '{{ item.recurse | default("no") }}'
|
||||||
|
state: '{{ item.state | default("present") }}'
|
||||||
|
upgrade: '{{ item.upgrade | default(omit) }}'
|
||||||
|
with_items: '{{ pacman_packages }}'
|
||||||
|
|
||||||
|
...
|
Loading…
Reference in a new issue