-
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor cleanup; now using ansible module for yum config
Signed-off-by: Matt Oswalt <[email protected]>
- Loading branch information
Matt Oswalt
committed
Jan 4, 2017
1 parent
36329a6
commit 8f1e76b
Showing
4 changed files
with
19 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
--- | ||
- name: Install latest st2 package | ||
- name: Install latest RHEL st2 package (stable) | ||
become: yes | ||
yum: | ||
name: st2 | ||
state: latest | ||
disable_gpg_check: yes | ||
when: st2_version == "stable" | ||
notify: | ||
- restart st2 | ||
|
||
- name: Install latest st2 package | ||
- name: Install latest RHEL st2 package (not stable) | ||
become: yes | ||
yum: | ||
name: st2={{ st2_version }}-{{ st2_revision }} | ||
state: present | ||
when: st2_version != "stable" | ||
notify: | ||
- restart st2 | ||
- restart st2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,14 @@ | ||
--- | ||
# Tasks based on https://packagecloud.io/install/repositories/StackStorm/stable/script.rpm.sh | ||
|
||
- name: Retrieve configuration | ||
get_url: | ||
url: "https://packagecloud.io/install/repositories/StackStorm/stable/config_file.repo?os={{ ansible_distribution }}&dist={{ ansible_distribution_version }}&source=script" | ||
dest: /tmp/yum_config | ||
mode: 0440 | ||
|
||
- name: Load config file | ||
shell: cat /tmp/yum_config | ||
register: yum_config | ||
- name: Install RPM key for StackStorm | ||
become: yes | ||
rpm_key: | ||
state: present | ||
key: https://packagecloud.io/StackStorm/stable/gpgkey | ||
|
||
- name: Update YUM configuration | ||
- name: Add ST2 Repo | ||
become: yes | ||
blockinfile: | ||
dest: /etc/yum.repos.d/StackStorm_stable.repo | ||
create: yes | ||
marker: "### ANSIBLE MANAGED BLOCK ###" | ||
content: | | ||
{{ yum_config.stdout }} | ||
yum_repository: | ||
name: stackstorm | ||
description: Stackstorm Repo | ||
file: st2 | ||
baseurl: https://packagecloud.io/StackStorm/stable/el/$releasever/$basearch |