私はソルトスタックが初めてです。
シンボリックリンクが存在することを確認しようとしています。
/etc/localtime:
file.symlink:
- target: /usr/share/zoneinfo/Europe/Paris
- file.exists:
- name: /usr/share/zoneinfo/Europe/Paris
既存の がない/etc/localtime
場合、または/etc/localtime
がすでにシンボリック リンクである場合、結果は例外となります。/etc/localtime
しかし、通常のファイルの場合は失敗します:
----------
State: - file
Name: /etc/localtime
Function: symlink
Result: False
Comment: File exists where the symlink /etc/localtime should be
Changes:
リンクの作成前にファイルが削除されるように状態をコーディングする方法がわかりません。どんな手掛かり ?
乾杯、ピエール