-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFE: add support to roll out license file #5
Comments
note to self, based on a playbook Eric and I used at another customer - name: 'Copy tower-license (must contain "eula_accepted": true)'
copy:
src: "{{ tower_license }}"
dest: "{{ base_copy_dir }}/"
- name: create configuration file /root/.tower_cli.cfg
copy:
content: |
[general]
host = localhost
username = {{ tower_username }}
password = {{ tower_password }}
dest: "/root/.tower_cli.cfg"
mode: 0600
- name: activate tower
shell: "tower-cli setting modify LICENSE @{{ base_copy_dir }}/{{ tower_license | basename }}"
when: tower_license is defined will need to add;
|
If it helps, we use the URI module to post the license to Tower: https://github.com/vvaldez/ansible-ami-builder/blob/master/roles/ami_config/tasks/profiles/tower/setup.yml#L23
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
it would be nice if this role was able to roll out a license file.
FWIW, at https://docs.ansible.com/ansible-tower/latest/html/administration/configure_tower_in_tower.html#license I found instructions how to do this via webUI
The text was updated successfully, but these errors were encountered: