File

Action: file.copy

KeyTypeOptionalDescription

action

string

no

file.copy

from

string

no

source file

to

string

no

destination file

template

bool

yes

renderes files using context providers, Default: false

chmod

int

yes

octal permissions

passphrase

string

yes

if set, decrypt files with the given passphrase

Example

- action: file.copy
  from: managed_file
  to: /root/file
  template: true
  chmod: 644

Last updated