Skip to content
Snippets Groups Projects
Select Git revision
  • 0d76b49a303b5a38426d7d5d57be509f237609bf
  • master default protected
2 results

files_

  • Clone with SSH
  • Clone with HTTPS
  • nd's avatar
    nd authored
    0d76b49a
    History
    Name Last commit Last update
    defaults
    tasks
    README.md

    Files

    All configuration is to be placed inside the files dict. This dict is a : mapping. With being the path of a file, for example '/boo/bar'. is a fileconfig dict, see below.

    fileconfig

    # file owner
    owner: root
    
    # file group
    group: root
    
    # permission bits, can be octal number or the string representation
    mode: 0700
    
    # can be 'present', 'absent', 'directory', or 'touch' (ensure file is created and set modification time to now, but do not change the content)
    state:  present
    
    # set the file content, mutaly exclusive with "template". Only handeled if the state if 'file'
    content: ''
    
    # not yet implemented
    template: ~
    template_vars: ~