diff options
author | Gaƫtan <36162164+gaetanfl@users.noreply.github.com> | 2018-02-23 18:10:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-23 18:10:48 +0100 |
commit | 4fdd3eb566b8b322789f74990181acc243ffb578 (patch) | |
tree | 4f0e9ffda46afe5e571d7071dd8e08c34a5b8928 /files/clever-set-domain.sh | |
parent | 4882b0d33ce42a3b01ac9689d1809e362f314d3f (diff) | |
parent | 8692bc2704f2a38890c93577e8f6743e611d5308 (diff) | |
download | ansible-clever-4fdd3eb566b8b322789f74990181acc243ffb578.tar.gz ansible-clever-4fdd3eb566b8b322789f74990181acc243ffb578.tar.zst ansible-clever-4fdd3eb566b8b322789f74990181acc243ffb578.zip |
Merge pull request #1 from gaetanfl/first_try
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 | ||