Add script for running system against development branch.

This commit is contained in:
Hyperling 2021-07-13 06:38:56 -05:00
parent ef68b36bc1
commit 038f69393d
2 changed files with 21 additions and 2 deletions

View File

@ -6,7 +6,7 @@
user: ansible user: ansible
name: "Ansible Sync" name: "Ansible Sync"
minute: "*/15" minute: "*/15"
job: "sudo {{ ansible_pull_exec.stdout }} -o -U https://github.com/Hyperling/ansible.git" job: "sudo {{ ansible_pull_exec.stdout }} -o -U https://github.com/Hyperling/ansible.git --checkout main"
state: present state: present
disabled: no disabled: no

View File

@ -35,4 +35,23 @@
- name: General | Scripts | Root | push.sh Permissions - name: General | Scripts | Root | push.sh Permissions
file: file:
path: "{{ user_root.home }}/bin/push.sh" path: "{{ user_root.home }}/bin/push.sh"
mode: '0755' mode: '0755'
- name: General | Scripts | Root | scm-dev.sh
blockinfile:
path: "{{ user_root.home }}/bin/scm-dev.sh"
block: |
# 20210713 - Make life easier for development!
push.sh
{{ ansible_pull_exec.stdout }} -U https://github.com/Hyperling/ansible.git --checkout dev
marker: '{mark}'
marker_begin: "#!{{ bash_exec.stdout }}"
marker_end: "exit 0"
state: present
create: yes
- name: General | Scripts | Root | scm-dev.sh Permissions
file:
path: "{{ user_root.home }}/bin/scm-dev.sh"
mode: '0755'