Ansible library to manage Etcd keys.
python-etcd is required to be installed.
Ensure a key is present
- name: Ensure Etcd key
etcd_key:
name: myKey
value: myValue
ttl: 10
state: present
etcd_host: etcd.example.com
etcd_port: 4001
Ensure a key is absent
- name: Ensure Etcd key
etcd_key:
name: myKey
state: absent
etcd_host: etcd.example.com
etcd_port: 4001