diff --git a/tasks/general/cron/ansible.yml b/tasks/general/cron/ansible.yml index 2681659..0b74049 100644 --- a/tasks/general/cron/ansible.yml +++ b/tasks/general/cron/ansible.yml @@ -6,7 +6,7 @@ user: ansible name: "Ansible Sync" 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 disabled: no diff --git a/tasks/general/scripts/root.yml b/tasks/general/scripts/root.yml index 6bdbb74..281ee0c 100644 --- a/tasks/general/scripts/root.yml +++ b/tasks/general/scripts/root.yml @@ -35,4 +35,23 @@ - name: General | Scripts | Root | push.sh Permissions file: path: "{{ user_root.home }}/bin/push.sh" - mode: '0755' \ No newline at end of file + 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'