- name: Create a home for Helga.
become: yes
file:
- path: {{ helga_home }}
- owner: {{ ansible_ssh_user }}
- group: {{ ansible_ssh_user }}
+ path: "{{ helga_home }}"
+ owner: "{{ ansible_user }}"
+ group: "{{ ansible_user }}"
state: directory
recurse: yes
- name: Install ssl requirements.
become: yes
yum:
- name: {{ item }}
+ name: "{{ item }}"
state: present
with_items: helga_ssl_requirements
when: helga_use_ssl
become: yes
yum:
name: epel-release
- state:present
+ state: present
- name: Retrieve software requirements.
become: yes
yum:
- name: {{ item }}
+ name: "{{ item }}"
state: present
with_items: "{{ helga_system_packages }}"
- name: Create a virtualenv with latest pip.
pip:
name: pip
- virtualenv: {{ helga_home }}
+ virtualenv: "{{ helga_home }}"
extra_args: '--upgrade'
- name: Install Helga.
pip:
name: helga
- virtualenv: {{ helga_home }}
+ virtualenv: "{{ helga_home }}"
- name: Install Helga unreleased enhancements.
pip:
- name: {{ item }}
+ name: "{{ item }}"
state: present
extra_args: "-e"
- virtualenv: {{ helga_home }}
+ virtualenv: "{{ helga_home }}"
with_items: "{{ helga_external_plugins }}"
notify: restart helga service
- name: Install Helga released enhancements.
pip:
- name: {{ item }}
+ name: "{{ item }}"
state: latest
- virtualenv: {{ helga_home }}
+ virtualenv: "{{ helga_home }}"
with_items: "{{ helga_pypi_plugins }}"
notify: restart helga service
- name: Create settings directory
file:
- path: {{ helga_settings_path }}
- state: directory
+ path: "{{ helga_settings_path }}"
+ state: directory
- name: Install base personality.
template:
src: custom_settings.j2
- dest: {{ helga_settings_path }}/00_base_settings.py
+ dest: "{{ helga_settings_path }}/00_base_settings.py"
- name: Install personality customizations (files).
copy:
- src: {{ item }}
- dest: {{ helga_settings_path }}
+ src: "{{ item }}"
+ dest: "{{ helga_settings_path }}"
# this one is tricky, because the relative path is relative to
# roles/common/files
with_fileglob:
- name: Custom settings, ASSEMBLE!
assemble:
- src: {{ helga_settings_path }}/
- dest: {{ helga_home }}/bin/custom_settings.py
+ src: "{{ helga_settings_path }}/"
+ dest: "{{ helga_home }}/bin/custom_settings.py"
- name: ensure mongod is running
become: true
WEBHOOKS_PORT = {{ helga_webhooks_port }}
# Twitter API
-TWITTER_CONSUMER_KEY = {{ helga_twitter_api_key }}
-TWITTER_CONSUMER_SECRET = {{ helga_twitter_api_secret }}
-TWITTER_OAUTH_TOKEN = {{ helga_twitter_oauth_token }}
-TWITTER_OAUTH_TOKEN_SECRET = {{ helga_twitter_oauth_secret }}
-TWITTER_USERNAME = {{ helga_twitter_username }}
+TWITTER_CONSUMER_KEY = '{{ helga_twitter_api_key }}'
+TWITTER_CONSUMER_SECRET = '{{ helga_twitter_api_secret }}'
+TWITTER_OAUTH_TOKEN = '{{ helga_twitter_oauth_token }}'
+TWITTER_OAUTH_TOKEN_SECRET = '{{ helga_twitter_oauth_secret }}'
+TWITTER_USERNAME = '{{ helga_twitter_username }}'
BUGZILLA_XMLRPC_URL = "{{ bugzilla_xmlrpc_url }}"
BUGZILLA_TICKET_URL = "{{ bugzilla_ticket_url }}"
JENKINS_CREDENTIALS = {
{% for key, value in jenkins_credentials.iteritems() %}
- '{{ key }': {
+ '{{ key }}': {
'username': '{{ value.username }}',
'token': '{{ value.token }}',
},