This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Playbook demonstrating Checklvst Open API integration with uri module. | |
# | |
# - Checklvst Website: https://checkvist.com | |
# - Checklvst Open API documentation: https://checkvist.com/auth/api | |
# - Ansible uri module documentation: https://docs.ansible.com/ansible/latest/collections/ansible/builtin/uri_module.html | |
# | |
# To run the playbook update the following variables with your configuration information: | |
# - host | |
# - checklvst_credentials.username |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: example.com | |
gather_facts: no | |
vars: | |
timestamp_var: "{{ lookup('pipe', 'date +%H:%M:%S') }}" | |
tasks: | |
- name: Set the playbook timestamp (so it doesn't change) | |
set_fact: | |
timestamp_host_fact: "{{ lookup('pipe', 'date +%H:%M:%S') }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Reinstall a Drupal instance to reset it back to a know state. | |
# A file base and Drush alias must already be configured. | |
DRUSH8='/Users/dale/bin/drush8/vendor/bin/drush' | |
DRUPALDIR='/Users/dale/Sites/group428' | |
CONFIGDIR='sites/default/group42config/sync' | |
DRUSHID='@g428' | |
SITE_NAME='Group 428' |