write ansible
This commit is contained in:
		
							
								
								
									
										27
									
								
								slides/ansible/examples/mmcli.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								slides/ansible/examples/mmcli.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,27 @@ | ||||
| --- | ||||
| - name: Install Mermaid ASCII | ||||
|   hosts: laka | ||||
|   become: true | ||||
|  | ||||
|   tasks: | ||||
|     - name: Install deps | ||||
|       ansible.builtin.package: | ||||
|         name: | ||||
|           - git | ||||
|           - golang | ||||
|           - make | ||||
|  | ||||
|     - name: Ensure local src dir exists | ||||
|       ansible.builtin.file: | ||||
|         path: /usr/local/src/ | ||||
|         state: directory | ||||
|         mode: '0755' | ||||
|     - name: Clone mermaid-ascii | ||||
|       ansible.builtin.git: | ||||
|         repo: https://github.com/AlexanderGrooff/mermaid-ascii.git | ||||
|         dest: /usr/local/src/mermaid-ascii/ | ||||
|         update: yes | ||||
|     - name: Install mermaid | ||||
|       community.general.make: | ||||
|         chdir: /usr/local/src/mermaid-ascii/ | ||||
|         target: install | ||||
		Reference in New Issue
	
	Block a user