Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

ansible-macos-dotfiles

Ansible role to manage personal dotfiles.

Build Status Github All Releases GitHub forks GitHub stars GitHub watchers Twitter Follow License

Requirements

  • Ansible 2.3

ansible.cfg

hash_behaviour = merge

Install

Just add the role to your requirements.yml file:

- src: https://github.com/feffi/ansible-macos-dotfiles.git
  name: feffi.macos-dotfiles

Role Variables

All role based variables are listed below, along with default values:

macos_dotfiles:
  # Containment directory for pulled git repositories
  containment: "{{ ansible_env.HOME + '/dotfiles' }}"
  # Git repositories to pull
  repositories:
    - { # Target name of the repository
        name: "dotfiles",
        # URL of the repository
        url: "https://github.com/feffi/dotfiles.git",
        # Symlinks to create from this repository, defaults to src= repo, dest= ~
        symlinks: [
          { file: "LICENSE" },
          { file: "README" },
          { file: "test-dir", force: yes, owner: root, group: admin, mode: "0777" }
        ]
      }

Dependencies

None.

Example Playbook

    - hosts: all
      vars:
        macos_dotfiles:
          # Containment directory for pulled git repositories
          containment: "{{ ansible_env.HOME + '/dotfiles' }}"
          # Git repositories to pull
          repositories:
            - { # Target name of the repository
                name: "dotfiles",
                # URL of the repository
                url: "https://github.com/feffi/dotfiles.git",
                # Symlinks to create from this repository, defaults to src= repo, dest= ~
                symlinks: [
                  { file: "LICENSE" },
                  { file: "README" },
                  { file: "test-dir", force: yes, owner: root, group: admin, mode: "0777" }
                ]
              }
      roles:
        - { role: feffi.macos-dotfiles }

Or with local parameters:

    - hosts: all
      roles:
        - { role: feffi.macos-dotfiles,
            macos_dotfiles: {
              # Containment directory for pulled git repositories
              containment: "{{ ansible_env.HOME + '/dotfiles' }}",
              # Git repositories to pull
              repositories: [
                { # Target name of the repository
                  name: "dotfiles",
                  # URL of the repository
                  url: "https://github.com/feffi/dotfiles.git",
                  # Symlinks to create from this repository, defaults to src= repo, dest= ~
                  symlinks: [
                    { file: "LICENSE" },
                    { file: "README" },
                    { file: "test-dir", force: yes, owner: root, group: admin, mode: "0777" }
                  ]
                }
              ]
            }
          }

About

Ansible role to manage personal dotfiles

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.