ansible install consul repo install consul

---
- hosts: localhost
  user: root
  become: yes
  become_method: sudo
  tasks:
  - name: install consul repo

    yum: name=https://harbottle.gitlab.io/harbottle-main/7/x86_64/harbottle-main-release.rpm state=present

  - name: install consul

    yum: name=https://copr-be.cloud.fedoraproject.org/results/harbottle/main/epel-7-x86_64/01032495-consul/consul-1.6.1-1.el7.harbottle.x86_64.rpm state=present

root@localhost ~]# ansible-playbook consul.yml

PLAY [localhost] ***************************************************************

TASK [install consul repo] *****************************************************
changed: [localhost]

TASK [install consul] **********************************************************
changed: [localhost]

PLAY RECAP *********************************************************************
localhost                  : ok=2    changed=2    unreachable=0    failed=0 

Comments

Popular posts from this blog

ansible redhat cluster qorum qdevice

PE 3.9.0 on centos 6

gfs2 cluster