Commit 5e4d036d by Arbab Nazar Committed by GitHub

Merge pull request #3220 from edx/arbab/go-agent-rewrite

YAML syntax for ansible tasks
parents 02f25f61 75e79760
...@@ -30,29 +30,31 @@ ...@@ -30,29 +30,31 @@
# - common # - common
# #
- name: install go-agent aptitude repository - name: Install go-agent aptitude repository
apt_repository: apt_repository:
repo="{{ GO_AGENT_APT_SOURCE }}" repo: "{{ GO_AGENT_APT_SOURCE }}"
state: present
- name: install aptitude key for go-agent/go-agent - name: Install aptitude key for go-agent/go-agent
apt_key: apt_key:
url="{{ GO_AGENT_APT_KEY_URL }}" url: "{{ GO_AGENT_APT_KEY_URL }}"
state: present
- name: install go-agent using apt-get - name: Install go-agent using apt-get
apt: apt:
name="{{ GO_AGENT_APT_NAME }}"="{{ GO_AGENT_VERSION }}" name: "{{ GO_AGENT_APT_NAME }}={{ GO_AGENT_VERSION }}"
update_cache=yes update_cache: yes
state: present
- name: install go-agent configuration - name: Install go-agent configuration
template: template:
src=edx/app/go-agent/go-agent.j2 src: "edx/app/go-agent/go-agent.j2"
dest={{ GO_AGENT_CONF_HOME }}/go-agent dest: "{{ GO_AGENT_CONF_HOME }}/go-agent"
mode=0644 mode: "0644"
owner={{ GO_AGENT_USER }} owner: "{{ GO_AGENT_USER }}"
group={{ GO_AGENT_GROUP }} group: "{{ GO_AGENT_GROUP }}"
- name: restart go-agent - name: Restart go-agent
service: service:
name="{{ GO_AGENT_SERVICE_NAME }}" name: "{{ GO_AGENT_SERVICE_NAME }}"
state="restarted" state: restarted
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment