- name: Configure Drain
when: syslog_server is defined or clever_syslog_server is defined
command: clever-set-drain.sh
+ args:
+ chdir: "{{ clever_app_root }}"
environment:
SYSLOG_UDP_SERVER: "{{ clever_syslog_server | default(syslog_server) }}"
CONFIGURATION_FILE: "{{ clever_login_file }}"
- name: Configure Domain
when: domain is defined or clever_domain is defined
command: clever-set-domain.sh
+ args:
+ chdir: "{{ clever_app_root }}"
environment:
DOMAIN: "{{ clever_domain | default(domain) }}"
CONFIGURATION_FILE: "{{ clever_login_file }}"
- name: Push Environment
shell: "clever env import < {{ clever_app_confdir }}/env"
+ args:
+ chdir: "{{ clever_app_root }}"
environment:
CONFIGURATION_FILE: "{{ clever_login_file }}"
changed_when: false
- name: Link app
command: clever link {{ clever_app }}
args:
+ chdir: "{{ clever_app_root }}"
creates: "{{ clever_app_root }}/.clever.json"
environment:
CONFIGURATION_FILE: "{{ clever_login_file }}"