Skip to content

Instantly share code, notes, and snippets.

#
# 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
@dale42
dale42 / demo_playbook_vs_host_fact_vars.playbook.yml
Created October 1, 2020 20:11
Ansible Playbook Vars vs Host Fact Vars Demonstration
- 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') }}"
@dale42
dale42 / site-rebuild.sh
Created June 22, 2017 22:37
A bash script to rebuild a Drupal site from scratch. Although most of the values are parameterized, it is not meant to be a fully generic script and will require site-by-site customization.
#!/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'