P
Size: a a a
DS
DS
A
tasks:
- file:
path: /tmp/test
state: absent
- file:
path: /tmp/test
state: directory
DS
$ cat 1.pp
file {'id1':
path => '/tmp/test',
ensure => absent,
}
file {'id2':
path => '/tmp/test',
ensure => directory,
}
$ puppet apply 1.pp
Error: Evaluation Error: Error while evaluating a Resource Statement, Cannot alias File[id2] to ["/tmp/test"] at (file: /root/1.pp, line: 5); resource ["File", "/tmp/test"] already declared (file: /root/1.pp, line: 1) (file: /root/1.pp, line: 5, column: 1) on node test
DS
BG
tasks:
- file:
path: /tmp/test
state: absent
- file:
path: /tmp/test
state: directory
BG
DS
BG
DS
AS
KZ
BG
SP
SK
Load average: 28.19 46.34 48.95
AV
SK
AM
Load average: 28.19 46.34 48.95