Skip to content

Commit

Permalink
V1.0.0 Candidate
Browse files Browse the repository at this point in the history
  • Loading branch information
pjan committed Mar 17, 2014
1 parent 177c81c commit dcb7318
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ Ansible script which will run a set of bootstrap scripts for users

```yaml
bootstraps_commands:
- user: pjan
- user: foo
command: "git clone --recursive https://github.com/pjan/ubuntu-dotfiles.git && cd ubuntu-dotfiles && set -- -f && source bootstrap.sh"
- user: bar
command: "cd /tmp && git clone --recursive https://github.com/pjan/vim-config.git && cd vim-config && set -- -f && source bootstrap.sh && sudo rm -r /tmp/vim-config"
```
Expand Down
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# file: bootstraps/tasks/main.yml

- name: Bootstraps | Run a list of bootstrap commands
shell: sudo su - {{item.name}} -c '{{item.command}}'
shell: sudo su - {{item.user}} -c '{{item.command}}'
with_items: bootstraps_commands

0 comments on commit dcb7318

Please sign in to comment.