You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

54 lines
1.4 KiB

---
- name: upload enough to packages (if running from sources)
hosts: packages-host
become: true
roles:
- role: enough-pip
- name: build enough docker image on the host using it (if running from sources)
hosts: enough-user-group
become: true
roles:
- role: certificate
vars:
certificate_authority: letsencrypt_staging
certificate_create: false
tasks:
- name: get the Enough version from setup.cfg, if running from sources
shell: |
set -e
cd $(git rev-parse --show-toplevel)
grep -q 'name = enough' setup.cfg
sed -n -e 's/^version = \(.*\)/\1/p' setup.cfg
changed_when: False
ignore_errors: True
register: enough_version
delegate_to: localhost
become: no
- when: enough_version.rc == 0
block:
- name: get enough installation script
uri:
dest: /usr/local/bin/enough-build-docker-image.sh
url: https://packages.{{ domain }}/docker-enough/enough-build-docker-image.sh
- name: apt-get install curl
apt:
name:
- curl
state: present
- name: install enough
shell: |
set -e
bash -x /usr/local/bin/enough-build-docker-image.sh
docker run --rm enough install --no-version internal/data/install.sh > /usr/local/bin/enough
test -s /usr/local/bin/enough
chmod +x /usr/local/bin/enough