Replace curl with uri module
This commit is contained in:
parent
32731ff034
commit
07e9cd6b6b
@ -8,8 +8,7 @@
|
|||||||
- name: Launch LXD container
|
- name: Launch LXD container
|
||||||
lxd_container:
|
lxd_container:
|
||||||
name: '{{ container }}'
|
name: '{{ container }}'
|
||||||
ephemeral: no
|
ephemeral: yes
|
||||||
profiles: ['odoo8']
|
|
||||||
source:
|
source:
|
||||||
type: image
|
type: image
|
||||||
mode: pull
|
mode: pull
|
||||||
@ -17,8 +16,12 @@
|
|||||||
protocol: simplestreams
|
protocol: simplestreams
|
||||||
fingerprint: 39a93d0b3552
|
fingerprint: 39a93d0b3552
|
||||||
|
|
||||||
|
# profiles: ['odoo8']
|
||||||
# alias: ubuntu/18.04
|
# alias: ubuntu/18.04
|
||||||
|
|
||||||
- name: Register DNS CNAME alias using Dreamhost API
|
- name: Register DNS CNAME alias using Dreamhost API
|
||||||
shell:
|
uri:
|
||||||
cmd: curl "https://api.dreamhost.com/?key={{ apikey }}&cmd=dns-add_record&record={{ container }}.{{ dominio }}&type=CNAME&value=externo.{{ dominio }}."
|
url: 'https://api.dreamhost.com/?key={{ apikey }}&cmd=dns-add_record&record={{ container }}.{{ dominio }}&type=CNAME&value=externo.{{ dominio }}.'
|
||||||
|
|
||||||
|
# shell:
|
||||||
|
# cmd: curl "https://api.dreamhost.com/?key={{ apikey }}&cmd=dns-add_record&record={{ container }}.{{ dominio }}&type=CNAME&value=externo.{{ dominio }}."
|
||||||
|
|||||||
Reference in New Issue
Block a user