Skip to content
This repository has been archived by the owner on Aug 27, 2021. It is now read-only.

Added support for AWX 11.0.0-15.0.1 #7

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion playbooks/group_vars/all
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

awx_target_version: 10.0.0
awx_target_version: 15.0.1
10 changes: 7 additions & 3 deletions roles/build-awx-package/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ build_dependencies:
awx_user: "awx"
awx_group: "awx"
awx_home_path: "/var/lib/awx"
awx_log_path: "/var/log/awx"
awx_log_base: "/var/log"
awx_log_path: "{{ awx_log_base }}/awx"
tower_log_path: "{{ awx_log_base }}/tower"
awx_venv_base: "/var/lib/awx/venv"
awx_venv_awx_prefix: "awx"
awx_venv_ansible_prefix: "ansible"
Expand All @@ -45,7 +47,9 @@ awx_venv_ansible: "{{ awx_venv_base }}/{{ awx_venv_ansible_prefix }}"



awx_config_dir: "/etc/awx"
awx_config_base: "/etc"
awx_config_dir: "{{awx_config_base }}/awx"
tower_config_dir: "{{awx_config_base }}/tower"
awx_settings_file: "{{ awx_config_dir }}/settings.py"
awx_secret_key_file: "{{ awx_config_dir }}/SECRET_KEY"
awx_fallback_secret_key: "Aph4sojithaodiceingeingiduxiipae"
Expand All @@ -54,4 +58,4 @@ awx_ui_path: "/usr/share/awx"

deb_package_name: "awx_{{ awx_version }}_{{ build_timestamp }}_amd64.deb"

upload_to_cloudsmith: true
upload_to_cloudsmith: true
16 changes: 15 additions & 1 deletion roles/build-awx-package/tasks/build/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,13 @@
group: root
mode: '0755'

- name: ensure tower config directory exists
file:
src: "{{ awx_config_dir }}"
dest: "{{ tower_config_dir }}"
state: link
when: awx_target_version is version('11.0.0','>=')

- name: ensure awx log directory exists
file:
path: "{{ awx_log_path }}"
Expand All @@ -96,6 +103,13 @@
group: root
mode: '0755'

- name: ensure tower log directory exists
file:
src: "{{ awx_log_path }}"
dest: "{{ tower_log_path }}"
state: link
when: awx_target_version is version('11.0.0','>=')

- name: clean awx ui directory
file:
state: absent
Expand Down Expand Up @@ -190,4 +204,4 @@
- python-memcached
- psutil
- requests
- ansible
- ansible
2 changes: 1 addition & 1 deletion roles/build-awx-package/templates/debian/control.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ Version: {{ awx_version }}-{{ build_timestamp }}
Architecture: amd64
Section: extra
Priority: optional
Depends: adduser, git, swig, libxml2, swig, pkg-config, python3-distutils | python3-distutils-extra, python3-dev, libxmlsec1-openssl
Depends: adduser, git, swig, libxml2, swig, pkg-config, supervisor, python3-distutils | python3-distutils-extra, python3-dev, libxmlsec1-openssl
Maintainer: Philipp Dittert <[email protected]>
Description: Debian AWX package