Advertisement
Guest User

Untitled

a guest
Nov 24th, 2020
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 53.64 KB | None | 0 0
  1. Capturing output to /home/sandesh/logs/install-20201125-070150.log
  2. Installation started at 2020-11-25 07:01:50
  3. Installing release 'open-release/juniper.3'
  4. Reading package lists...
  5. Building dependency tree...
  6. Reading state information...
  7. python-software-properties is already the newest version (0.96.20.10).
  8. 0 upgraded, 0 newly installed, 0 to remove and 20 not upgraded.
  9. gpg: keyring `/tmp/tmp3gw1u_9x/secring.gpg' created
  10. gpg: keyring `/tmp/tmp3gw1u_9x/pubring.gpg' created
  11. gpg: requesting key BA9EF27F from hkp server keyserver.ubuntu.com
  12. gpg: /tmp/tmp3gw1u_9x/trustdb.gpg: trustdb created
  13. gpg: key BA9EF27F: public key "Launchpad Toolchain builds" imported
  14. gpg: Total number processed: 1
  15. gpg:               imported: 1  (RSA: 1)
  16. OK
  17. Hit:1 http://ppa.launchpad.net/git-core/ppa/ubuntu xenial InRelease
  18. Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
  19. Hit:3 http://np.archive.ubuntu.com/ubuntu xenial InRelease
  20. Hit:4 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial InRelease
  21. Hit:5 http://nginx.org/packages/ubuntu xenial InRelease
  22. Hit:6 http://np.archive.ubuntu.com/ubuntu xenial-updates InRelease
  23. Hit:7 http://ppa.edx.org xenial InRelease
  24. Get:8 http://np.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
  25. Fetched 216 kB in 1s (127 kB/s)
  26. Reading package lists...
  27. Reading package lists...
  28. Building dependency tree...
  29. Reading state information...
  30. Calculating upgrade...
  31. The following packages have been kept back:
  32.   cpp-5 g++-5 gcc-5 gcc-5-base gcc-6-base libasan2 libatomic1 libcc1-0
  33.   libcilkrts5 libgcc-5-dev libgcc1 libgomp1 libitm1 liblsan0 libmpx0
  34.   libquadmath0 libstdc++-5-dev libstdc++6 libtsan0 libubsan0
  35. 0 upgraded, 0 newly installed, 0 to remove and 20 not upgraded.
  36. Reading package lists...
  37. Building dependency tree...
  38. Reading state information...
  39. build-essential is already the newest version (12.1ubuntu2).
  40. g++ is already the newest version (4:5.3.1-1ubuntu1).
  41. gcc is already the newest version (4:5.3.1-1ubuntu1).
  42. libxmlsec1-dev is already the newest version (1.2.20-2ubuntu4).
  43. swig is already the newest version (3.0.8-0ubuntu3).
  44. curl is already the newest version (7.47.0-1ubuntu2.16).
  45. libfreetype6-dev is already the newest version (2.6.1-0.1ubuntu2.5).
  46. libmysqlclient-dev is already the newest version (5.7.32-0ubuntu0.16.04.1).
  47. libxml2-dev is already the newest version (2.9.3+dfsg1-1ubuntu0.7).
  48. libxslt1-dev is already the newest version (1.1.28-2.1ubuntu0.3).
  49. python-apt is already the newest version (1.1.0~beta1ubuntu0.16.04.9).
  50. python-dev is already the newest version (2.7.12-1~16.04).
  51. software-properties-common is already the newest version (0.96.20.10).
  52. python-pip is already the newest version (8.1.1-2ubuntu0.6).
  53. git-core is already the newest version (1:2.14.2-1~ppa0~ubuntu16.04.1).
  54. 0 upgraded, 0 newly installed, 0 to remove and 20 not upgraded.
  55. Reading package lists...
  56. Building dependency tree...
  57. Reading state information...
  58. The following packages will be REMOVED:
  59.   python-yaml
  60. 0 upgraded, 0 newly installed, 1 to remove and 20 not upgraded.
  61. After this operation, 453 kB disk space will be freed.
  62. (Reading database ...
  63. (Reading database ... 5%
  64. (Reading database ... 10%
  65. (Reading database ... 15%
  66. (Reading database ... 20%
  67. (Reading database ... 25%
  68. (Reading database ... 30%
  69. (Reading database ... 35%
  70. (Reading database ... 40%
  71. (Reading database ... 45%
  72. (Reading database ... 50%
  73. (Reading database ... 55%
  74. (Reading database ... 60%
  75. (Reading database ... 65%
  76. (Reading database ... 70%
  77. (Reading database ... 75%
  78. (Reading database ... 80%
  79. (Reading database ... 85%
  80. (Reading database ... 90%
  81. (Reading database ... 95%
  82. (Reading database ... 100%
  83. (Reading database ... 224061 files and directories currently installed.)
  84. Removing python-yaml (3.11-3build1) ...
  85. Requirement already up-to-date: pip==20.0.2 in /usr/local/lib/python3.5/dist-packages (20.0.2)
  86. WARNING: You are using pip version 20.0.2; however, version 20.2.4 is available.
  87. You should consider upgrading via the '/usr/bin/python -m pip install --upgrade pip' command.
  88. Requirement already up-to-date: setuptools==44.1.0 in /usr/local/lib/python3.5/dist-packages (44.1.0)
  89. WARNING: You are using pip version 20.0.2; however, version 20.2.4 is available.
  90. You should consider upgrading via the '/usr/bin/python -m pip install --upgrade pip' command.
  91. Requirement already up-to-date: virtualenv==16.7.10 in /usr/local/lib/python3.5/dist-packages (16.7.10)
  92. WARNING: You are using pip version 20.0.2; however, version 20.2.4 is available.
  93. You should consider upgrading via the '/usr/bin/python -m pip install --upgrade pip' command.
  94. fatal: destination path 'configuration' already exists and is not an empty directory.
  95. HEAD is now at 05bb4edcf Improve sandboxing. (#5953) (#5960)
  96. warning: Pulling without specifying how to reconcile divergent branches is
  97. discouraged. You can squelch this message by running one of the following
  98. commands sometime before your next pull:
  99.  
  100.   git config pull.rebase false  # merge (the default strategy)
  101.   git config pull.rebase true   # rebase
  102.   git config pull.ff only       # fast-forward only
  103.  
  104. You can replace "git config" with "git config --global" to set a default
  105. preference for all repositories. You can also pass --rebase, --no-rebase,
  106. or --ff-only on the command line to override the configured default per
  107. invocation.
  108.  
  109. You are not currently on a branch.
  110. Please specify which branch you want to merge with.
  111. See git-pull(1) for details.
  112.  
  113.     git pull <remote> <branch>
  114.  
  115. Requirement already satisfied: ansible==2.7.12 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 7)) (2.7.12)
  116. Requirement already satisfied: awscli==1.15.19 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 8)) (1.15.19)
  117. Requirement already satisfied: bcrypt==3.1.7 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 9)) (3.1.7)
  118. Requirement already satisfied: boto3==1.7.14 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 10)) (1.7.14)
  119. Requirement already satisfied: boto==2.48.0 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 11)) (2.48.0)
  120. Requirement already satisfied: botocore==1.10.19 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 12)) (1.10.19)
  121. Requirement already satisfied: certifi==2020.4.5.1 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 13)) (2020.4.5.1)
  122. Requirement already satisfied: cffi==1.14.0 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 14)) (1.14.0)
  123. Requirement already satisfied: chardet==3.0.4 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 15)) (3.0.4)
  124. Requirement already satisfied: colorama==0.3.7 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 16)) (0.3.7)
  125. Requirement already satisfied: cryptography==2.9.2 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 17)) (2.9.2)
  126. Requirement already satisfied: datadog==0.8.0 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 18)) (0.8.0)
  127. Requirement already satisfied: decorator==4.4.2 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 19)) (4.4.2)
  128. Requirement already satisfied: docopt==0.6.2 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 20)) (0.6.2)
  129. Requirement already satisfied: docutils==0.16 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 21)) (0.16)
  130. Requirement already satisfied: ecdsa==0.13.3 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 22)) (0.13.3)
  131. Requirement already satisfied: idna==2.7 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 23)) (2.7)
  132. Requirement already satisfied: jinja2==2.8 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 24)) (2.8)
  133. Requirement already satisfied: jmespath==0.9.5 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 25)) (0.9.5)
  134. Requirement already satisfied: markupsafe==1.1.1 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 26)) (1.1.1)
  135. Requirement already satisfied: mysqlclient==1.3.0 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 27)) (1.3.0)
  136. Requirement already satisfied: networkx==1.11 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 28)) (1.11)
  137. Requirement already satisfied: paramiko==2.4.2 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 29)) (2.4.2)
  138. Requirement already satisfied: pathlib2==2.3.0 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 30)) (2.3.0)
  139. Requirement already satisfied: prettytable==0.7.2 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 31)) (0.7.2)
  140. Requirement already satisfied: pyasn1==0.4.8 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 32)) (0.4.8)
  141. Requirement already satisfied: pycparser==2.20 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 33)) (2.20)
  142. Requirement already satisfied: pycrypto==2.6.1 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 34)) (2.6.1)
  143. Requirement already satisfied: pymongo==3.9.0 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 35)) (3.9.0)
  144. Requirement already satisfied: pynacl==1.3.0 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 36)) (1.3.0)
  145. Requirement already satisfied: python-dateutil==2.8.1 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 37)) (2.8.1)
  146. Requirement already satisfied: pyyaml==3.12 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 38)) (3.12)
  147. Requirement already satisfied: requests==2.20.0 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 39)) (2.20.0)
  148. Requirement already satisfied: rsa==3.4.2 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 40)) (3.4.2)
  149. Requirement already satisfied: s3transfer==0.1.13 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 41)) (0.1.13)
  150. Requirement already satisfied: six==1.14.0 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 42)) (1.14.0)
  151. Requirement already satisfied: urllib3==1.24.3 in /usr/local/lib/python3.5/dist-packages (from -r requirements.txt (line 43)) (1.24.3)
  152. Requirement already satisfied: setuptools in /usr/local/lib/python3.5/dist-packages (from ansible==2.7.12->-r requirements.txt (line 7)) (44.1.0)
  153. WARNING: You are using pip version 20.0.2; however, version 20.2.4 is available.
  154. You should consider upgrading via the '/usr/bin/python -m pip install --upgrade pip' command.
  155.  [WARNING]: While constructing a mapping from
  156. /var/tmp/configuration/playbooks/roles/edx_django_service/tasks/main.yml, line
  157. 125, column 3, found a duplicate dict key (when). Using last defined value
  158. only.
  159.  [WARNING]: While constructing a mapping from
  160. /var/tmp/configuration/playbooks/roles/forum/defaults/main.yml, line 81, column
  161. 3, found a duplicate dict key (RACK_ENV). Using last defined value only.
  162.  [WARNING]: While constructing a mapping from
  163. /var/tmp/configuration/playbooks/roles/forum/defaults/main.yml, line 81, column
  164. 3, found a duplicate dict key (SINATRA_ENV). Using last defined value only.
  165.  [WARNING]: While constructing a mapping from
  166. /var/tmp/configuration/playbooks/roles/forum/defaults/main.yml, line 81, column
  167. 3, found a duplicate dict key (SEARCH_SERVER). Using last defined value only.
  168.  [WARNING]: While constructing a mapping from
  169. /var/tmp/configuration/playbooks/roles/forum/defaults/main.yml, line 81, column
  170. 3, found a duplicate dict key (MONGOHQ_URL). Using last defined value only.
  171.  [WARNING]: While constructing a mapping from
  172. /var/tmp/configuration/playbooks/roles/forum/defaults/main.yml, line 81, column
  173. 3, found a duplicate dict key (MONGOID_AUTH_MECH). Using last defined value
  174. only.
  175.  
  176. PLAY [Bootstrap instance(s)] ***************************************************
  177.  
  178. TASK [python : Wait until cloud-init has finished running] *********************
  179. fatal: [localhost]: FAILED! => {"changed": true, "msg": "non-zero return code", "rc": 1, "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
  180. ...ignoring
  181.  
  182. TASK [python : Update apt-get] *************************************************
  183. FAILED - RETRYING: Update apt-get (10 retries left).
  184. changed: [localhost]
  185.  
  186. TASK [python : Install packages] ***********************************************
  187. changed: [localhost] => (item=python-minimal)
  188.  
  189. PLAY [Configure instance(s)] ***************************************************
  190.  
  191. TASK [Gathering Facts] *********************************************************
  192. ok: [localhost]
  193.  
  194. TASK [swapfile : Write swapfile] ***********************************************
  195. ok: [localhost]
  196.  
  197. TASK [swapfile : Set swapfile permissions] *************************************
  198. ok: [localhost]
  199.  
  200. TASK [swapfile : Create swapfile] **********************************************
  201. skipping: [localhost]
  202.  
  203. TASK [swapfile : Enable swapfile] **********************************************
  204. skipping: [localhost]
  205.  
  206. TASK [swapfile : Add swapfile to /etc/fstab] ***********************************
  207. ok: [localhost]
  208.  
  209. TASK [swapfile : Configure vm.swappiness] **************************************
  210. skipping: [localhost]
  211.  
  212. TASK [swapfile : Configure vm.vfs_cache_pressure] ******************************
  213. skipping: [localhost]
  214.  
  215. TASK [server_utils : Check for expired edx key] ********************************
  216. skipping: [localhost]
  217.  
  218. TASK [server_utils : remove expired edx key] ***********************************
  219. skipping: [localhost]
  220.  
  221. TASK [server_utils : Install ubuntu system packages] ***************************
  222. skipping: [localhost]
  223.  
  224. TASK [user : debug] ************************************************************
  225. skipping: [localhost]
  226.  
  227. TASK [user : Create the edxadmin group] ****************************************
  228. skipping: [localhost]
  229.  
  230. TASK [user : Ensure sudoers.d is read] *****************************************
  231. skipping: [localhost]
  232.  
  233. TASK [user : Grant full sudo access to the edxadmin group] *********************
  234. skipping: [localhost]
  235.  
  236. TASK [user : Create the users] *************************************************
  237.  
  238. TASK [user : Assign admin role to admin users] *********************************
  239.  
  240. TASK [user : Check the ssh key(s) for user(s) over github] *********************
  241.  
  242. TASK [user : Print warning if github user(s) missing ssh key] ******************
  243.  
  244. TASK [user : Halt if USER_FAIL_MISSING_KEYS is true and github user(s) missing ssh key] ***
  245.  
  246. TASK [user : Get github key(s) and update the authorized_keys file] ************
  247.  
  248. TASK [user : Create ~/.ssh directory for non github users] *********************
  249.  
  250. TASK [user : Build authorized_keys file for non github users] ******************
  251.  
  252. TASK [user : Create bashrc file for normal users] ******************************
  253.  
  254. TASK [user : Create .profile for all users] ************************************
  255.  
  256. TASK [user : Modify shell for restricted users] ********************************
  257.  
  258. TASK [user : Create bashrc file for restricted users] **************************
  259.  
  260. TASK [user : Create sudoers file from template] ********************************
  261. skipping: [localhost]
  262.  
  263. TASK [user : Change home directory ownership to root for restricted users] *****
  264.  
  265. TASK [user : Create ~/bin directory] *******************************************
  266.  
  267. TASK [user : Create allowed command links] *************************************
  268.  
  269. TASK [user : Allow users to ssh] ***********************************************
  270. skipping: [localhost]
  271.  
  272. TASK [user : Restart ssh (ubuntu/debian)] **************************************
  273. skipping: [localhost]
  274.  
  275. TASK [user : Restart ssh (redhat)] *********************************************
  276. skipping: [localhost]
  277.  
  278. TASK [security : Install security packages] ************************************
  279. skipping: [localhost]
  280.  
  281. TASK [security : Update all system packages] ***********************************
  282. skipping: [localhost]
  283.  
  284. TASK [security : Configure periodic unattended-upgrades] ***********************
  285. skipping: [localhost]
  286.  
  287. TASK [security : Disable unattended-upgrades if Xenial (16.04)] ****************
  288. skipping: [localhost] => (item=systemctl disable apt-daily.service)
  289. skipping: [localhost] => (item=systemctl disable apt-daily.timer)
  290. skipping: [localhost] => (item=systemctl disable apt-daily-upgrade.timer)
  291.  
  292. TASK [security : Disable unattended-upgrades] **********************************
  293. skipping: [localhost]
  294.  
  295. TASK [security : Only unattended-upgrade from security repo] *******************
  296. skipping: [localhost]
  297.  
  298. TASK [security : Add debian blacklist] *****************************************
  299. skipping: [localhost]
  300.  
  301. TASK [security : Disable security only updates on unattended-upgrades] *********
  302. skipping: [localhost]
  303.  
  304. TASK [security : Take security updates during ansible runs] ********************
  305. skipping: [localhost] => (item=unattended-upgrade --dry-run)
  306. skipping: [localhost] => (item=unattended-upgrade)
  307.  
  308. TASK [security : Install security packages] ************************************
  309. skipping: [localhost]
  310.  
  311. TASK [security : Enable automatic start for update service] ********************
  312. skipping: [localhost]
  313.  
  314. TASK [security : Update all system packages] ***********************************
  315. skipping: [localhost]
  316.  
  317. TASK [security : Configure security auto-updates] ******************************
  318. skipping: [localhost] => (item={'regexp': '^update_cmd', 'line': 'update_cmd = security'})
  319. skipping: [localhost] => (item={'regexp': '^apply_updates', 'line': 'apply_updates = yes'})
  320.  
  321. TASK [security : Take security updates during ansible runs] ********************
  322. skipping: [localhost] => (item=yum check-update --security)
  323. skipping: [localhost] => (item=yum update --security -y)
  324.  
  325. TASK [common : Check Configuration Sources] ************************************
  326.  
  327. TASK [common : stat] ***********************************************************
  328. skipping: [localhost] => (item=/usr/local/share/ca-certificates)
  329. skipping: [localhost] => (item=/usr/sbin/update-ca-certificates)
  330.  
  331. TASK [common : Download digicert intermediate Certificate] *********************
  332. skipping: [localhost]
  333.  
  334. TASK [common : Update CA Certificates] *****************************************
  335. skipping: [localhost]
  336.  
  337. TASK [common : stat] ***********************************************************
  338. skipping: [localhost]
  339.  
  340. TASK [common : Update CA Trust] ************************************************
  341. skipping: [localhost]
  342.  
  343. TASK [common : Add common_users] ***********************************************
  344. skipping: [localhost] => (item=www-data)
  345. skipping: [localhost] => (item=syslog)
  346.  
  347. TASK [common : check if instance is vagrant] ***********************************
  348. skipping: [localhost]
  349.  
  350. TASK [common : Add git apt repository] *****************************************
  351. skipping: [localhost]
  352.  
  353. TASK [common : Add ppa for watchman package] ***********************************
  354. skipping: [localhost]
  355.  
  356. TASK [common : Add edX PPA apt key] ********************************************
  357. skipping: [localhost]
  358.  
  359. TASK [common : Update expired apt keys] ****************************************
  360. skipping: [localhost]
  361.  
  362. TASK [common : Add custom edX PPA] *********************************************
  363. skipping: [localhost]
  364.  
  365. TASK [common : Install role-independent useful system packages] ****************
  366. skipping: [localhost]
  367.  
  368. TASK [common : Install role-independent packages useful for devstack.] *********
  369. skipping: [localhost]
  370.  
  371. TASK [common : Install role-independent useful system packages from custom PPA] ***
  372. skipping: [localhost]
  373.  
  374. TASK [common : Install role-independent useful system packages] ****************
  375. skipping: [localhost]
  376.  
  377. TASK [common : Create common directories] **************************************
  378. skipping: [localhost] => (item={'path': '/edx/var'})
  379. skipping: [localhost] => (item={'path': '/edx/app'})
  380. skipping: [localhost] => (item={'path': '/edx/bin'})
  381. skipping: [localhost] => (item={'path': '/edx/etc'})
  382. skipping: [localhost] => (item={'path': '/edx/var/log', 'owner': 'syslog', 'group': 'syslog'})
  383. skipping: [localhost] => (item={'path': '/etc/logrotate.d/hourly'})
  384. skipping: [localhost] => (item={'path': '/etc/rsyslog.d/50-default.conf', 'state': 'absent'})
  385.  
  386. TASK [common : upload sudo config for key forwarding as root] ******************
  387. skipping: [localhost]
  388.  
  389. TASK [common : pip install virtualenv] *****************************************
  390. skipping: [localhost]
  391.  
  392. TASK [common : update /etc/hosts] **********************************************
  393. skipping: [localhost]
  394.  
  395. TASK [common : update /etc/hostname] *******************************************
  396. skipping: [localhost]
  397.  
  398. TASK [common : run hostname] ***************************************************
  399. skipping: [localhost]
  400.  
  401. TASK [common : Copy the templates to their respective destination] *************
  402. skipping: [localhost] => (item={'dest': '/etc/rsyslog.d/99-edx.conf', 'src': 'edx_rsyslog.j2'})
  403. skipping: [localhost] => (item={'dest': '/etc/logrotate.d/hourly/edx-services', 'src': 'etc/logrotate.d/hourly/edx_logrotate.j2'})
  404. skipping: [localhost] => (item={'dest': '/etc/cron.hourly/logrotate', 'mode': '0555', 'src': 'etc/cron.hourly/logrotate.j2'})
  405. skipping: [localhost] => (item={'dest': '/etc/logrotate.d/hourly/tracking.log', 'src': 'etc/logrotate.d/hourly/edx_logrotate_tracking_log.j2'})
  406.  
  407. TASK [common : restart rsyslogd] ***********************************************
  408. skipping: [localhost]
  409.  
  410. TASK [common : Add ntp alert script] *******************************************
  411. skipping: [localhost]
  412.  
  413. TASK [common : Remove MOTD update checker] *************************************
  414. skipping: [localhost]
  415.  
  416. TASK [common : Set up a cron job to run the log-ntp-alerts script] *************
  417. skipping: [localhost]
  418.  
  419. TASK [common : install logrotate configuration] ********************************
  420. skipping: [localhost]
  421.  
  422. TASK [vhost : Create all service directories] **********************************
  423. skipping: [localhost] => (item={'value': {'path': '/edx/var/log/aws', 'mode': '0650', 'owner': 'syslog', 'group': 'syslog'}, 'key': 'logs'})
  424. skipping: [localhost] => (item={'value': {'path': '/edx/var/aws', 'mode': '0700', 'owner': 'root', 'group': 'root'}, 'key': 'data'})
  425. skipping: [localhost] => (item={'value': {'path': '/edx/app/aws', 'mode': '0755', 'owner': 'root', 'group': 'root'}, 'key': 'home'})
  426.  
  427. TASK [vhost : Add script for syncing logs on exit] *****************************
  428. skipping: [localhost]
  429.  
  430. TASK [vhost : Force logrotate on supervisor stop] ******************************
  431. skipping: [localhost]
  432.  
  433. TASK [vhost : Add systemd service for syncing logs on exit] ********************
  434. skipping: [localhost]
  435.  
  436. TASK [vhost : Enable systemd service for syncing logs on exit] *****************
  437. skipping: [localhost]
  438.  
  439. TASK [vhost : Update /etc/dhcp/dhclient.conf] **********************************
  440. skipping: [localhost]
  441.  
  442. TASK [vhost : Rerun dhclient to apply template] ********************************
  443. skipping: [localhost]
  444.  
  445. TASK [vhost : Copy the MOTD template in place] *********************************
  446. skipping: [localhost]
  447.  
  448. TASK [vhost : Add motd.tail support for 16.04] *********************************
  449. skipping: [localhost]
  450.  
  451. TASK [vhost : Update sshd logging to VERBOSE] **********************************
  452. skipping: [localhost]
  453.  
  454. TASK [vhost : Update sshd logging to VERBOSE] **********************************
  455. skipping: [localhost]
  456.  
  457. TASK [vhost : Restart ssh (ubuntu/debian)] *************************************
  458. skipping: [localhost]
  459.  
  460. TASK [vhost : Restart ssh (redhat)] ********************************************
  461. skipping: [localhost]
  462.  
  463. TASK [aws : Gather ec2 facts for use in other roles] ***************************
  464. skipping: [localhost]
  465.  
  466. TASK [aws : Set the MTU to 1500 temporarily] ***********************************
  467. skipping: [localhost]
  468.  
  469. TASK [aws : Set the MTU to 1500 permanently] ***********************************
  470. skipping: [localhost]
  471.  
  472. TASK [aws : Install system packages] *******************************************
  473. skipping: [localhost]
  474.  
  475. TASK [aws : Copy the Python requirements file] *********************************
  476. skipping: [localhost]
  477.  
  478. TASK [aws : Install aws python packages] ***************************************
  479. skipping: [localhost]
  480.  
  481. TASK [aws : Copy the boto global config file] **********************************
  482. skipping: [localhost]
  483.  
  484. TASK [aws : Create s3 log sync script] *****************************************
  485. skipping: [localhost]
  486.  
  487. TASK [aws : Create symlink for s3 log sync script] *****************************
  488. skipping: [localhost]
  489.  
  490. TASK [aws : Check if files exist so the next task doesn't fail] ****************
  491. skipping: [localhost] => (item=/etc/update-motd.d/10-help-text)
  492. skipping: [localhost] => (item=/usr/share/landscape/landscape-sysinfo.wrapper)
  493. skipping: [localhost] => (item=/etc/update-motd.d/51-cloudguest)
  494. skipping: [localhost] => (item=/etc/update-motd.d/91-release-upgrade)
  495.  
  496. TASK [aws : Update the ssh motd on Ubuntu] *************************************
  497. skipping: [localhost] => (item={'_ansible_item_result': True, '_ansible_item_label': '/etc/update-motd.d/10-help-text', 'changed': False, '_ansible_no_log': False, '_ansible_ignore_errors': None, 'skip_reason': 'Conditional result was False', 'skipped': True, 'item': '/etc/update-motd.d/10-help-text'})
  498. skipping: [localhost] => (item={'_ansible_item_result': True, '_ansible_item_label': '/usr/share/landscape/landscape-sysinfo.wrapper', 'changed': False, '_ansible_no_log': False, '_ansible_ignore_errors': None, 'skip_reason': 'Conditional result was False', 'skipped': True, 'item': '/usr/share/landscape/landscape-sysinfo.wrapper'})
  499. skipping: [localhost] => (item={'_ansible_item_result': True, '_ansible_item_label': '/etc/update-motd.d/51-cloudguest', 'changed': False, '_ansible_no_log': False, '_ansible_ignore_errors': None, 'skip_reason': 'Conditional result was False', 'skipped': True, 'item': '/etc/update-motd.d/51-cloudguest'})
  500. skipping: [localhost] => (item={'_ansible_item_result': True, '_ansible_item_label': '/etc/update-motd.d/91-release-upgrade', 'changed': False, '_ansible_no_log': False, '_ansible_ignore_errors': None, 'skip_reason': 'Conditional result was False', 'skipped': True, 'item': '/etc/update-motd.d/91-release-upgrade'})
  501.  
  502. TASK [server_utils : Check for expired edx key] ********************************
  503. changed: [localhost]
  504.  
  505. TASK [server_utils : remove expired edx key] ***********************************
  506. skipping: [localhost]
  507.  
  508. TASK [server_utils : Install ubuntu system packages] ***************************
  509. ok: [localhost]
  510.  
  511. TASK [user : debug] ************************************************************
  512. ok: [localhost] => {
  513.    "user_info": []
  514. }
  515.  
  516. TASK [user : Create the edxadmin group] ****************************************
  517. ok: [localhost]
  518.  
  519. TASK [user : Ensure sudoers.d is read] *****************************************
  520. ok: [localhost]
  521.  
  522. TASK [user : Grant full sudo access to the edxadmin group] *********************
  523. ok: [localhost]
  524.  
  525. TASK [user : Create the users] *************************************************
  526.  
  527. TASK [user : Assign admin role to admin users] *********************************
  528.  
  529. TASK [user : Check the ssh key(s) for user(s) over github] *********************
  530.  
  531. TASK [user : Print warning if github user(s) missing ssh key] ******************
  532.  
  533. TASK [user : Halt if USER_FAIL_MISSING_KEYS is true and github user(s) missing ssh key] ***
  534.  
  535. TASK [user : Get github key(s) and update the authorized_keys file] ************
  536.  
  537. TASK [user : Create ~/.ssh directory for non github users] *********************
  538.  
  539. TASK [user : Build authorized_keys file for non github users] ******************
  540.  
  541. TASK [user : Create bashrc file for normal users] ******************************
  542.  
  543. TASK [user : Create .profile for all users] ************************************
  544.  
  545. TASK [user : Modify shell for restricted users] ********************************
  546.  
  547. TASK [user : Create bashrc file for restricted users] **************************
  548.  
  549. TASK [user : Create sudoers file from template] ********************************
  550. ok: [localhost]
  551.  
  552. TASK [user : Change home directory ownership to root for restricted users] *****
  553.  
  554. TASK [user : Create ~/bin directory] *******************************************
  555.  
  556. TASK [user : Create allowed command links] *************************************
  557.  
  558. TASK [user : Allow users to ssh] ***********************************************
  559. skipping: [localhost]
  560.  
  561. TASK [user : Restart ssh (ubuntu/debian)] **************************************
  562. skipping: [localhost]
  563.  
  564. TASK [user : Restart ssh (redhat)] *********************************************
  565. skipping: [localhost]
  566.  
  567. TASK [security : Install security packages] ************************************
  568. skipping: [localhost]
  569.  
  570. TASK [security : Update all system packages] ***********************************
  571. skipping: [localhost]
  572.  
  573. TASK [security : Configure periodic unattended-upgrades] ***********************
  574. skipping: [localhost]
  575.  
  576. TASK [security : Disable unattended-upgrades if Xenial (16.04)] ****************
  577. skipping: [localhost] => (item=systemctl disable apt-daily.service)
  578. skipping: [localhost] => (item=systemctl disable apt-daily.timer)
  579. skipping: [localhost] => (item=systemctl disable apt-daily-upgrade.timer)
  580.  
  581. TASK [security : Disable unattended-upgrades] **********************************
  582. skipping: [localhost]
  583.  
  584. TASK [security : Only unattended-upgrade from security repo] *******************
  585. skipping: [localhost]
  586.  
  587. TASK [security : Add debian blacklist] *****************************************
  588. skipping: [localhost]
  589.  
  590. TASK [security : Disable security only updates on unattended-upgrades] *********
  591. skipping: [localhost]
  592.  
  593. TASK [security : Take security updates during ansible runs] ********************
  594. skipping: [localhost] => (item=unattended-upgrade --dry-run)
  595. skipping: [localhost] => (item=unattended-upgrade)
  596.  
  597. TASK [security : Install security packages] ************************************
  598. skipping: [localhost]
  599.  
  600. TASK [security : Enable automatic start for update service] ********************
  601. skipping: [localhost]
  602.  
  603. TASK [security : Update all system packages] ***********************************
  604. skipping: [localhost]
  605.  
  606. TASK [security : Configure security auto-updates] ******************************
  607. skipping: [localhost] => (item={'regexp': '^update_cmd', 'line': 'update_cmd = security'})
  608. skipping: [localhost] => (item={'regexp': '^apply_updates', 'line': 'apply_updates = yes'})
  609.  
  610. TASK [security : Take security updates during ansible runs] ********************
  611. skipping: [localhost] => (item=yum check-update --security)
  612. skipping: [localhost] => (item=yum update --security -y)
  613.  
  614. TASK [common : Check Configuration Sources] ************************************
  615.  
  616. TASK [common : stat] ***********************************************************
  617. ok: [localhost] => (item=/usr/local/share/ca-certificates)
  618. ok: [localhost] => (item=/usr/sbin/update-ca-certificates)
  619.  
  620. TASK [common : Download digicert intermediate Certificate] *********************
  621. ok: [localhost]
  622.  
  623. TASK [common : Update CA Certificates] *****************************************
  624. changed: [localhost]
  625.  
  626. TASK [common : stat] ***********************************************************
  627. ok: [localhost]
  628.  
  629. TASK [common : Update CA Trust] ************************************************
  630. skipping: [localhost]
  631.  
  632. TASK [common : Add common_users] ***********************************************
  633. ok: [localhost] => (item=www-data)
  634. ok: [localhost] => (item=syslog)
  635.  
  636. TASK [common : check if instance is vagrant] ***********************************
  637. ok: [localhost]
  638.  
  639. TASK [common : Add git apt repository] *****************************************
  640. ok: [localhost]
  641.  
  642. TASK [common : Add ppa for watchman package] ***********************************
  643. [WARNING]: when statements should not include jinja2 templating delimiters
  644. such as {{ }} or {% %}. Found: ansible_distribution in common_debian_variants
  645. and  ({{ devstack | default(False) }} or {{ edx_django_service_is_devstack |
  646. default(False) }})
  647. skipping: [localhost]
  648.  
  649. TASK [common : Add edX PPA apt key] ********************************************
  650. ok: [localhost]
  651.  
  652. TASK [common : Update expired apt keys] ****************************************
  653. changed: [localhost]
  654.  
  655. TASK [common : Add custom edX PPA] *********************************************
  656. ok: [localhost]
  657.  
  658. TASK [common : Install role-independent useful system packages] ****************
  659. ok: [localhost]
  660.  
  661. TASK [common : Install role-independent packages useful for devstack.] *********
  662. [WARNING]: when statements should not include jinja2 templating delimiters
  663. such as {{ }} or {% %}. Found: ansible_distribution in common_debian_variants
  664. and  ({{ devstack | default(False) }} or {{ edx_django_service_is_devstack |
  665. default(False) }})
  666. skipping: [localhost]
  667.  
  668. TASK [common : Install role-independent useful system packages from custom PPA] ***
  669. skipping: [localhost]
  670.  
  671. TASK [common : Install role-independent useful system packages] ****************
  672. skipping: [localhost]
  673.  
  674. TASK [common : Create common directories] **************************************
  675. ok: [localhost] => (item={'path': '/edx/var'})
  676. ok: [localhost] => (item={'path': '/edx/app'})
  677. ok: [localhost] => (item={'path': '/edx/bin'})
  678. ok: [localhost] => (item={'path': '/edx/etc'})
  679. ok: [localhost] => (item={'path': '/edx/var/log', 'owner': 'syslog', 'group': 'syslog'})
  680. ok: [localhost] => (item={'path': '/etc/logrotate.d/hourly'})
  681. ok: [localhost] => (item={'path': '/etc/rsyslog.d/50-default.conf', 'state': 'absent'})
  682.  
  683. TASK [common : upload sudo config for key forwarding as root] ******************
  684. ok: [localhost]
  685.  
  686. TASK [common : pip install virtualenv] *****************************************
  687. ok: [localhost]
  688.  
  689. TASK [common : update /etc/hosts] **********************************************
  690. skipping: [localhost]
  691.  
  692. TASK [common : update /etc/hostname] *******************************************
  693. skipping: [localhost]
  694.  
  695. TASK [common : run hostname] ***************************************************
  696. skipping: [localhost]
  697.  
  698. TASK [common : Copy the templates to their respective destination] *************
  699. ok: [localhost] => (item={'dest': '/etc/rsyslog.d/99-edx.conf', 'src': 'edx_rsyslog.j2'})
  700. ok: [localhost] => (item={'dest': '/etc/logrotate.d/hourly/edx-services', 'src': 'etc/logrotate.d/hourly/edx_logrotate.j2'})
  701. ok: [localhost] => (item={'dest': '/etc/cron.hourly/logrotate', 'mode': '0555', 'src': 'etc/cron.hourly/logrotate.j2'})
  702. ok: [localhost] => (item={'dest': '/etc/logrotate.d/hourly/tracking.log', 'src': 'etc/logrotate.d/hourly/edx_logrotate_tracking_log.j2'})
  703.  
  704. TASK [common : restart rsyslogd] ***********************************************
  705. skipping: [localhost]
  706.  
  707. TASK [common : Add ntp alert script] *******************************************
  708. ok: [localhost]
  709.  
  710. TASK [common : Remove MOTD update checker] *************************************
  711. ok: [localhost]
  712.  
  713. TASK [common : Set up a cron job to run the log-ntp-alerts script] *************
  714. ok: [localhost]
  715.  
  716. TASK [common : install logrotate configuration] ********************************
  717. ok: [localhost]
  718.  
  719. TASK [nginx : Create Diffie-Hellman parameters to prevent weak key exchange] ***
  720. ok: [localhost]
  721.  
  722. TASK [nginx : Restrict permissions of DH parameters file] **********************
  723. ok: [localhost]
  724.  
  725. TASK [nginx : Create nginx app and data dirs] **********************************
  726. ok: [localhost] => (item={'path': '/edx/app/nginx', 'owner': 'root', 'group': 'www-data'})
  727. ok: [localhost] => (item={'path': '/edx/app/nginx/sites-available', 'owner': 'root', 'group': 'www-data'})
  728. ok: [localhost] => (item={'path': '/etc/nginx/sites-enabled', 'owner': 'root', 'group': 'www-data'})
  729. ok: [localhost] => (item={'path': '/edx/app/nginx/conf.d', 'owner': 'root', 'group': 'www-data'})
  730. ok: [localhost] => (item={'path': '/edx/var/nginx', 'owner': 'www-data', 'group': 'root'})
  731. changed: [localhost] => (item={'path': '/edx/var/log/nginx', 'owner': 'www-data', 'group': 'root'})
  732. ok: [localhost] => (item={'path': '/edx/var/nginx/server-static', 'owner': 'www-data', 'group': 'root'})
  733.  
  734. TASK [nginx : Install needed packages] *****************************************
  735. ok: [localhost]
  736.  
  737. TASK [nginx : Add apt key] *****************************************************
  738. ok: [localhost]
  739.  
  740. TASK [nginx : Add nginx repository] ********************************************
  741. ok: [localhost]
  742.  
  743. TASK [nginx : Remove old nginx packages] ***************************************
  744. ok: [localhost]
  745.  
  746. TASK [nginx : Install the nginx package] ***************************************
  747. ok: [localhost]
  748.  
  749. TASK [nginx : Remove the default site] *****************************************
  750. ok: [localhost]
  751.  
  752. TASK [nginx : Define server configuration file and common nginx configuration] ***
  753. ok: [localhost] => (item={'group': 'www-data', 'dest': '/etc/nginx/nginx.conf', 'mode': '0644', 'src': 'etc/nginx/nginx.conf.j2'})
  754. ok: [localhost] => (item={'group': 'root', 'dest': '/edx/app/nginx/sites-available/maps', 'mode': '0600', 'src': 'edx/app/nginx/sites-available/maps.j2'})
  755.  
  756. TASK [nginx : Create robot rules] **********************************************
  757. ok: [localhost]
  758.  
  759. TASK [nginx : Creating link for common nginx configuration] ********************
  760. ok: [localhost] => (item=maps)
  761.  
  762. TASK [nginx : Copying nginx configs for ['certs', 'cms', 'lms', 'forum', 'xqueue']] ***
  763. changed: [localhost] => (item=certs)
  764. changed: [localhost] => (item=cms)
  765. changed: [localhost] => (item=lms)
  766. changed: [localhost] => (item=forum)
  767. changed: [localhost] => (item=xqueue)
  768.  
  769. TASK [nginx : Creating nginx config links for ['certs', 'cms', 'lms', 'forum', 'xqueue']] ***
  770. changed: [localhost] => (item=certs)
  771. changed: [localhost] => (item=cms)
  772. changed: [localhost] => (item=lms)
  773. changed: [localhost] => (item=forum)
  774. changed: [localhost] => (item=xqueue)
  775.  
  776. TASK [nginx : Copying nginx extra configs] *************************************
  777.  
  778. TASK [nginx : Creating links for nginx extra configs] **************************
  779.  
  780. TASK [nginx : Copying custom nginx config] *************************************
  781.  
  782. TASK [nginx : Copying nginx redirect configs for {}] ***************************
  783.  
  784. TASK [nginx : Creating nginx redirect links for {}] ****************************
  785.  
  786. TASK [nginx : Create NGINX server templates] ***********************************
  787. ok: [localhost] => (item={'lang': 'en', 'style_h1': 'font-family: "Helvetica Neue",Helvetica,Roboto,Arial,sans-serif; margin-bottom: .3em; font-size: 2.0em; line-height: 1.25em; text-rendering: optimizeLegibility; font-weight: bold; color: #000000;', 'style_p_h2': 'font-family: "Helvetica Neue",Helvetica,Roboto,Arial,sans-serif; margin-bottom: .3em; line-height: 1.25em; text-rendering: optimizeLegibility; font-weight: bold; font-size: 1.8em; color: #5b5e63;', 'heading': 'Uh oh, we are having some server issues..', 'style_div': 'margin: auto; width: 800px; text-align: center; padding:20px 0px 0px 0px;', 'file': 'rate-limit.html', 'msg': 'If think you have encountered this message in error please let us know at <a href="mailto:technical@example.com">technical@example.com</a>', 'img': 'https://upload.wikimedia.org/wikipedia/commons/thumb/1/11/Pendleton_Sinking_Ship.jpg/640px-Pendleton_Sinking_Ship.jpg', 'title': 'Rate limit exceeded', 'style_p': 'font-family: Georgia,Cambria,"Times New Roman",Times,serif; margin: auto; margin-bottom: 1em; font-weight: 200; line-height: 1.4em; font-size: 1.1em; max-width: 80%;', 'img_alt': ''})
  788. ok: [localhost] => (item={'lang': 'en', 'style_h1': 'font-family: "Helvetica Neue",Helvetica,Roboto,Arial,sans-serif; margin-bottom: .3em; font-size: 2.0em; line-height: 1.25em; text-rendering: optimizeLegibility; font-weight: bold; color: #000000;', 'style_p_h2': 'font-family: "Helvetica Neue",Helvetica,Roboto,Arial,sans-serif; margin-bottom: .3em; line-height: 1.25em; text-rendering: optimizeLegibility; font-weight: bold; font-size: 1.8em; color: #5b5e63;', 'heading': 'Uh oh, we are having some server issues..', 'style_div': 'margin: auto; width: 800px; text-align: center; padding:20px 0px 0px 0px;', 'file': 'server-error.html', 'msg': 'We are aware of the error and are working to find a resolution.', 'img': 'https://upload.wikimedia.org/wikipedia/commons/thumb/1/11/Pendleton_Sinking_Ship.jpg/640px-Pendleton_Sinking_Ship.jpg', 'title': 'Server error', 'style_p': 'font-family: Georgia,Cambria,"Times New Roman",Times,serif; margin: auto; margin-bottom: 1em; font-weight: 200; line-height: 1.4em; font-size: 1.1em; max-width: 80%;', 'img_alt': ''})
  789.  
  790. TASK [nginx : Copy static files] ***********************************************
  791.  
  792. TASK [nginx : Write out htpasswd file] *****************************************
  793. skipping: [localhost] => (item={'name': '2lHQQPoT00ot5hP3XP25EXcgVou4oA9lwYl', 'state': 'present', 'password': 'f9qnT6dqZZ9z8ID1tQx3yBWsR6pjtuczYlV'})
  794.  
  795. TASK [nginx : Write out htpasswd file for prospectus preview pages] ************
  796. skipping: [localhost] => (item={'name': '2lHQQPoT00ot5hP3XP25EXcgVou4oA9lwYl', 'state': 'present', 'password': 'f9qnT6dqZZ9z8ID1tQx3yBWsR6pjtuczYlV'})
  797.  
  798. TASK [nginx : Create nginx log file location (just in case)] *******************
  799. changed: [localhost]
  800.  
  801. TASK [nginx : stat] ************************************************************
  802. ok: [localhost -> localhost]
  803.  
  804. TASK [nginx : stat] ************************************************************
  805. ok: [localhost -> localhost]
  806.  
  807. TASK [nginx : copy ssl cert] ***************************************************
  808. skipping: [localhost]
  809.  
  810. TASK [nginx : copy ssl key] ****************************************************
  811. skipping: [localhost]
  812.  
  813. TASK [nginx : Removing default nginx config and restart (enabled)] *************
  814. ok: [localhost]
  815.  
  816. TASK [nginx : Set up nginx access log rotation] ********************************
  817. ok: [localhost]
  818.  
  819. TASK [nginx : Set up nginx error log rotation] *********************************
  820. ok: [localhost]
  821.  
  822. TASK [nginx : Test nginx configs] **********************************************
  823. changed: [localhost]
  824.  
  825. RUNNING HANDLER [nginx : restart nginx] ****************************************
  826. changed: [localhost]
  827.  
  828. RUNNING HANDLER [nginx : reload nginx] *****************************************
  829. changed: [localhost]
  830.  
  831. TASK [nginx : make sure nginx has started] *************************************
  832. ok: [localhost]
  833.  
  834. TASK [security : Install security packages] ************************************
  835. skipping: [localhost]
  836.  
  837. TASK [security : Update all system packages] ***********************************
  838. skipping: [localhost]
  839.  
  840. TASK [security : Configure periodic unattended-upgrades] ***********************
  841. skipping: [localhost]
  842.  
  843. TASK [security : Disable unattended-upgrades if Xenial (16.04)] ****************
  844. skipping: [localhost] => (item=systemctl disable apt-daily.service)
  845. skipping: [localhost] => (item=systemctl disable apt-daily.timer)
  846. skipping: [localhost] => (item=systemctl disable apt-daily-upgrade.timer)
  847.  
  848. TASK [security : Disable unattended-upgrades] **********************************
  849. skipping: [localhost]
  850.  
  851. TASK [security : Only unattended-upgrade from security repo] *******************
  852. skipping: [localhost]
  853.  
  854. TASK [security : Add debian blacklist] *****************************************
  855. skipping: [localhost]
  856.  
  857. TASK [security : Disable security only updates on unattended-upgrades] *********
  858. skipping: [localhost]
  859.  
  860. TASK [security : Take security updates during ansible runs] ********************
  861. skipping: [localhost] => (item=unattended-upgrade --dry-run)
  862. skipping: [localhost] => (item=unattended-upgrade)
  863.  
  864. TASK [security : Install security packages] ************************************
  865. skipping: [localhost]
  866.  
  867. TASK [security : Enable automatic start for update service] ********************
  868. skipping: [localhost]
  869.  
  870. TASK [security : Update all system packages] ***********************************
  871. skipping: [localhost]
  872.  
  873. TASK [security : Configure security auto-updates] ******************************
  874. skipping: [localhost] => (item={'regexp': '^update_cmd', 'line': 'update_cmd = security'})
  875. skipping: [localhost] => (item={'regexp': '^apply_updates', 'line': 'apply_updates = yes'})
  876.  
  877. TASK [security : Take security updates during ansible runs] ********************
  878. skipping: [localhost] => (item=yum check-update --security)
  879. skipping: [localhost] => (item=yum update --security -y)
  880.  
  881. TASK [security : Install security packages] ************************************
  882. skipping: [localhost]
  883.  
  884. TASK [security : Update all system packages] ***********************************
  885. skipping: [localhost]
  886.  
  887. TASK [security : Configure periodic unattended-upgrades] ***********************
  888. skipping: [localhost]
  889.  
  890. TASK [security : Disable unattended-upgrades if Xenial (16.04)] ****************
  891. skipping: [localhost] => (item=systemctl disable apt-daily.service)
  892. skipping: [localhost] => (item=systemctl disable apt-daily.timer)
  893. skipping: [localhost] => (item=systemctl disable apt-daily-upgrade.timer)
  894.  
  895. TASK [security : Disable unattended-upgrades] **********************************
  896. skipping: [localhost]
  897.  
  898. TASK [security : Only unattended-upgrade from security repo] *******************
  899. skipping: [localhost]
  900.  
  901. TASK [security : Add debian blacklist] *****************************************
  902. skipping: [localhost]
  903.  
  904. TASK [security : Disable security only updates on unattended-upgrades] *********
  905. skipping: [localhost]
  906.  
  907. TASK [security : Take security updates during ansible runs] ********************
  908. skipping: [localhost] => (item=unattended-upgrade --dry-run)
  909. skipping: [localhost] => (item=unattended-upgrade)
  910.  
  911. TASK [security : Install security packages] ************************************
  912. skipping: [localhost]
  913.  
  914. TASK [security : Enable automatic start for update service] ********************
  915. skipping: [localhost]
  916.  
  917. TASK [security : Update all system packages] ***********************************
  918. skipping: [localhost]
  919.  
  920. TASK [security : Configure security auto-updates] ******************************
  921. skipping: [localhost] => (item={'regexp': '^update_cmd', 'line': 'update_cmd = security'})
  922. skipping: [localhost] => (item={'regexp': '^apply_updates', 'line': 'apply_updates = yes'})
  923.  
  924. TASK [security : Take security updates during ansible runs] ********************
  925. skipping: [localhost] => (item=yum check-update --security)
  926. skipping: [localhost] => (item=yum update --security -y)
  927.  
  928. TASK [mysql : Look for mysql 5.6] **********************************************
  929. fatal: [localhost]: FAILED! => {"changed": false, "cmd": "dpkg -s mysql-server", "delta": "0:00:00.026132", "end": "2020-11-25 07:03:48.459889", "msg": "non-zero return code", "rc": 1, "start": "2020-11-25 07:03:48.433757", "stderr": "dpkg-query: package 'mysql-server' is not installed and no information is available\nUse dpkg --info (= dpkg-deb --info) to examine archive files,\nand dpkg --contents (= dpkg-deb --contents) to list their contents.", "stderr_lines": ["dpkg-query: package 'mysql-server' is not installed and no information is available", "Use dpkg --info (= dpkg-deb --info) to examine archive files,", "and dpkg --contents (= dpkg-deb --contents) to list their contents."], "stdout": "", "stdout_lines": []}
  930. ...ignoring
  931.  
  932. TASK [mysql : Important message] ***********************************************
  933. skipping: [localhost]
  934.  
  935. TASK [mysql : pause] ***********************************************************
  936. skipping: [localhost]
  937.  
  938. TASK [mysql : Stop mysql service] **********************************************
  939. skipping: [localhost]
  940.  
  941. TASK [mysql : Remove experimental apt repository] ******************************
  942. skipping: [localhost]
  943.  
  944. TASK [mysql : Remove experimental version of mysql] ****************************
  945. [DEPRECATION WARNING]: Invoking "apt" only once while using a loop via
  946. squash_actions is deprecated. Instead of using a loop to supply multiple items
  947. and specifying `name: "{{ item }}"`, please use `name: ['mysql-server-5.6',
  948. 'mysql-server']` and remove the loop. This feature will be removed in version
  949. 2.11. Deprecation warnings can be disabled by setting
  950. deprecation_warnings=False in ansible.cfg.
  951. skipping: [localhost] => (item=[])
  952.  
  953. TASK [mysql : Install mysql-5.6 and dependencies] ******************************
  954. ok: [localhost]
  955.  
  956. TASK [mysql : Set default character sets and collations] ***********************
  957. ok: [localhost]
  958.  
  959. TASK [mysql : restart mysql] ***************************************************
  960.  [WARNING]: Consider using the service module rather than running 'service'.
  961. If you need to use command because service is insufficient you can add 'warn:
  962. false' to this command task or set 'command_warnings=False' in ansible.cfg to
  963. get rid of this message.
  964. changed: [localhost]
  965.  
  966. TASK [mysql : Ensure Anonymous user(s) does not exist] *************************
  967. ok: [localhost] => (item=localhost)
  968. ok: [localhost] => (item=sandesh)
  969.  
  970. TASK [edxlocal : Install packages needed for single server] ********************
  971. [DEPRECATION WARNING]: Invoking "apt" only once while using a loop via
  972. squash_actions is deprecated. Instead of using a loop to supply multiple items
  973. and specifying `name: "{{ item }}"`, please use `name: '{{ edxlocal_debian_pkgs
  974. }}'` and remove the loop. This feature will be removed in version 2.11.
  975. Deprecation warnings can be disabled by setting deprecation_warnings=False in
  976. ansible.cfg.
  977. ok: [localhost] => (item=['postfix', 'libjpeg-dev'])
  978.  
  979. TASK [edxlocal : create databases] *********************************************
  980. An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'dict' object has no attribute 'iteritems'
  981. failed: [localhost] (item=ecommerce) => {"changed": false, "item": "ecommerce", "msg": "error creating database: 'dict' object has no attribute 'iteritems'"}
  982. An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'dict' object has no attribute 'iteritems'
  983. failed: [localhost] (item=dashboard) => {"changed": false, "item": "dashboard", "msg": "error creating database: 'dict' object has no attribute 'iteritems'"}
  984. An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'dict' object has no attribute 'iteritems'
  985. failed: [localhost] (item=xqueue) => {"changed": false, "item": "xqueue", "msg": "error creating database: 'dict' object has no attribute 'iteritems'"}
  986. An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'dict' object has no attribute 'iteritems'
  987. failed: [localhost] (item=edxapp) => {"changed": false, "item": "edxapp", "msg": "error creating database: 'dict' object has no attribute 'iteritems'"}
  988. An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'dict' object has no attribute 'iteritems'
  989. failed: [localhost] (item=edxapp_csmh) => {"changed": false, "item": "edxapp_csmh", "msg": "error creating database: 'dict' object has no attribute 'iteritems'"}
  990. An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'dict' object has no attribute 'iteritems'
  991. failed: [localhost] (item=edx_notes_api) => {"changed": false, "item": "edx_notes_api", "msg": "error creating database: 'dict' object has no attribute 'iteritems'"}
  992. An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'dict' object has no attribute 'iteritems'
  993. failed: [localhost] (item=analytics-api) => {"changed": false, "item": "analytics-api", "msg": "error creating database: 'dict' object has no attribute 'iteritems'"}
  994. An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'dict' object has no attribute 'iteritems'
  995. failed: [localhost] (item=reports) => {"changed": false, "item": "reports", "msg": "error creating database: 'dict' object has no attribute 'iteritems'"}
  996. An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'dict' object has no attribute 'iteritems'
  997. failed: [localhost] (item=blockstore) => {"changed": false, "item": "blockstore", "msg": "error creating database: 'dict' object has no attribute 'iteritems'"}
  998. skipping: [localhost] => (item=)
  999. An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'dict' object has no attribute 'iteritems'
  1000. failed: [localhost] (item=discovery) => {"changed": false, "item": "discovery", "msg": "error creating database: 'dict' object has no attribute 'iteritems'"}
  1001. skipping: [localhost] => (item=)
  1002. skipping: [localhost] => (item=)
  1003.     to retry, use: --limit @/var/tmp/configuration/playbooks/openedx_native.retry
  1004.  
  1005. PLAY RECAP *********************************************************************
  1006. localhost                  : ok=64   changed=14   unreachable=0    failed=1  
  1007.  
  1008.  
  1009. ============================================================
  1010. Ansible failed!
  1011. ------------------------------------------------------------
  1012.  
  1013. Decoded error:
  1014. == cmd ===========================
  1015. dpkg -s mysql-server
  1016. == msg ===========================
  1017. non-zero return code
  1018. == stderr ===========================
  1019. dpkg-query: package 'mysql-server' is not installed and no information is available
  1020. Use dpkg --info (= dpkg-deb --info) to examine archive files,
  1021. and dpkg --contents (= dpkg-deb --contents) to list their contents.
  1022.  
  1023. ============================================================
  1024. Installation failed!
  1025. ------------------------------------------------------------
  1026. If you need help, see https://open.edx.org/getting-help .
  1027. When asking for help, please provide as much information as you can.
  1028. These might be helpful:
  1029.     Your log file is at /home/sandesh/logs/install-20201125-070150.log
  1030.     Your environment:
  1031.         OPENEDX_RELEASE=open-release/juniper.3
  1032. ============================================================
  1033. Installation finished at 2020-11-25 07:03:56
  1034.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement