diff options
author | Gaëtan Duchaussois <gaetan.duchaussois@fretlink.com> | 2018-02-22 11:53:19 +0100 |
---|---|---|
committer | Gaëtan Duchaussois <gaetan.duchaussois@fretlink.com> | 2018-02-22 11:57:08 +0100 |
commit | f7dd5848f817bb42cb06eadc5444ec390aa813ba (patch) | |
tree | 7459517d6b8b850959313d5c30f25f18fcda5531 /files/clever-set-domain.sh | |
parent | 4882b0d33ce42a3b01ac9689d1809e362f314d3f (diff) | |
download | ansible-clever-f7dd5848f817bb42cb06eadc5444ec390aa813ba.tar.gz ansible-clever-f7dd5848f817bb42cb06eadc5444ec390aa813ba.tar.zst ansible-clever-f7dd5848f817bb42cb06eadc5444ec390aa813ba.zip |
Migrating single tasks file to a galaxy role
Diffstat (limited to 'files/clever-set-domain.sh')
-rw-r--r-- | files/clever-set-domain.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/files/clever-set-domain.sh b/files/clever-set-domain.sh new file mode 100644 index 0000000..bf63be0 --- /dev/null +++ b/files/clever-set-domain.sh | |||
@@ -0,0 +1,11 @@ | |||
1 | #!/bin/bash -e | ||
2 | |||
3 | function checkDomain { | ||
4 | clever domain | grep "${DOMAIN}" | ||
5 | } | ||
6 | |||
7 | function setDomain { | ||
8 | clever domain add "${DOMAIN}" | ||
9 | } | ||
10 | |||
11 | checkDomain || setDomain | ||