
Ansible を使用して、マスター サーバーからスレーブ 1 サーバーに Nginx パッケージをインストールしています (注: マスター サーバーとスレーブ サーバーの両方に Ubuntu 18.04 があり、これらを Docker コンテナー内で実行しています)。ただし、これを行うために Ansible コマンドを実行するたびに、以下のエラーが発生します。ここで行き詰まっています。この解決策は何でしょうか。この問題のデバッグにご協力ください。
root@afb19093484e:/# ansible Slave1 -m apt -a "name=nginx state=present"
172.17.0.3 | FAILED! => {
"changed": false,
"cmd": "apt-get update",
"msg": "E: Release file for http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease is not valid yet (invalid for another 3d 21h 33min 13s). Updates for this repository will not be applied.\nE: Release file for http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease is not valid yet (invalid for another 3d 23h 23min 36s). Updates for this repository will not be applied.",
"rc": 100,
"stderr": "E: Release file for http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease is not valid yet (invalid for another 3d 21h 33min 13s). Updates for this repository will not be applied.\nE: Release file for http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease is not valid yet (invalid for another 3d 23h 23min 36s). Updates for this repository will not be applied.\n",
"stderr_lines": [
"E: Release file for http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease is not valid yet (invalid for another 3d 21h 33min 13s). Updates for this repository will not be applied.",
],
答え1
システム クロックが UTC に設定されており、UTC との差が数分以内であることを確認します。