Install GnuPG packages, allow to skip everything except basics

This commit is contained in:
Alex Kotov 2020-01-15 00:32:41 +05:00
parent 074e188179
commit d914e1621e
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
5 changed files with 28 additions and 1 deletions

View File

@ -1,4 +1,6 @@
---
common__only_basics: false
common__certbot__run: true
common__certbot__email: 'user@example.com'
common__certbot__cert_name: 'example.com'

View File

@ -14,6 +14,8 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
'certbot',
'colordiff',
'curl',
'gnupg',
'gnupg2',
'iptables-persistent',
'less',
'vim',

8
tasks/basics.yml Normal file
View File

@ -0,0 +1,8 @@
---
- name: Install basic packages
apt:
name:
- curl
- gnupg
- gnupg2
- wget

View File

@ -1,6 +1,17 @@
---
- include_tasks: basics.yml
- include_tasks: usability.yml
when: not common__only_basics|bool
- include_tasks: ssh.yml
when: not common__only_basics|bool
- include_tasks: iptables.yml
when: not common__only_basics|bool
- include_tasks: certbot.yml
when: not common__only_basics|bool
- include_tasks: nginx.yml
when: not common__only_basics|bool

View File

@ -1,7 +1,11 @@
---
- name: Install useful packages
apt:
name: ['bash-completion', 'colordiff', 'curl', 'less', 'vim', 'wget']
name:
- bash-completion
- colordiff
- less
- vim
- name: Install Vim config
copy: