Split commands in case I'd like to push but not wait for pull to finish.
This commit is contained in:
		@@ -6,7 +6,7 @@
 | 
				
			|||||||
    path: "{{ user_root.home }}/bin/scm.sh"
 | 
					    path: "{{ user_root.home }}/bin/scm.sh"
 | 
				
			||||||
    block: |
 | 
					    block: |
 | 
				
			||||||
      # 20210211 - Make life easier!
 | 
					      # 20210211 - Make life easier!
 | 
				
			||||||
      ssh ling@leet "cd Code/Ansible/ansible-pull; git push"
 | 
					      push.sh
 | 
				
			||||||
      time curl https://scm.hyperling.com | bash
 | 
					      time curl https://scm.hyperling.com | bash
 | 
				
			||||||
    marker: '{mark}'
 | 
					    marker: '{mark}'
 | 
				
			||||||
    marker_begin: "#!{{ bash_exec.stdout }}"
 | 
					    marker_begin: "#!{{ bash_exec.stdout }}"
 | 
				
			||||||
@@ -18,3 +18,21 @@
 | 
				
			|||||||
  file: 
 | 
					  file: 
 | 
				
			||||||
    path: "{{ user_root.home }}/bin/scm.sh"
 | 
					    path: "{{ user_root.home }}/bin/scm.sh"
 | 
				
			||||||
    mode: '0755'
 | 
					    mode: '0755'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: General | Scripts | Root | push.sh
 | 
				
			||||||
 | 
					  blockinfile:
 | 
				
			||||||
 | 
					    path: "{{ user_root.home }}/bin/push.sh"
 | 
				
			||||||
 | 
					    block: |
 | 
				
			||||||
 | 
					      # 20210215 - Make life even easier!
 | 
				
			||||||
 | 
					      ssh ling@leet "cd Code/Ansible/ansible-pull; git push"
 | 
				
			||||||
 | 
					    marker: '{mark}'
 | 
				
			||||||
 | 
					    marker_begin: "#!{{ bash_exec.stdout }}"
 | 
				
			||||||
 | 
					    marker_end: "exit 0"
 | 
				
			||||||
 | 
					    state: present
 | 
				
			||||||
 | 
					    create: yes
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: General | Scripts | Root | push.sh Permissions
 | 
				
			||||||
 | 
					  file: 
 | 
				
			||||||
 | 
					    path: "{{ user_root.home }}/bin/push.sh"
 | 
				
			||||||
 | 
					    mode: '0755'
 | 
				
			||||||
		Reference in New Issue
	
	Block a user