Chapters
30 Chapters
|
2:45:48
|
Login to bookmark this video
-
Course Code
Subscribe to download the code!Compatible PHP versions: >=5.5.9
Subscribe to download the code!Compatible PHP versions: >=5.5.9
-
This Video
Subscribe to download the video!
Subscribe to download the video!
-
Subtitles
Subscribe to download the subtitles!
Subscribe to download the subtitles!
-
Course Script
Subscribe to download the script!
Subscribe to download the script!
22.
Skipping Tasks based on Changed
Scroll down to the script below, click on any sentence (including terminal blocks) to jump to that spot in the video!
Subscribe to jump to this part in the video!
Keep on Learning!
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
This tutorial is built using an older version of Symfony, but the core concepts of Ansible are still valid. New versions of Ansible may contain some features that we don't use here.
What PHP libraries does this tutorial use?
// composer.json
{
"require": {
"php": ">=5.5.9",
"symfony/symfony": "3.1.*", // v3.1.4
"doctrine/orm": "^2.5", // v2.7.2
"doctrine/doctrine-bundle": "^1.6", // 1.6.4
"doctrine/doctrine-cache-bundle": "^1.2", // 1.3.0
"symfony/swiftmailer-bundle": "^2.3", // v2.3.11
"symfony/monolog-bundle": "^2.8", // 2.11.1
"symfony/polyfill-apcu": "^1.0", // v1.2.0
"sensio/distribution-bundle": "^5.0", // v5.0.12
"sensio/framework-extra-bundle": "^3.0.2", // v3.0.16
"incenteev/composer-parameter-handler": "^2.0", // v2.1.2
"doctrine/doctrine-migrations-bundle": "^1.2", // v1.2.0
"snc/redis-bundle": "^2.0", // 2.0.0
"predis/predis": "^1.1", // v1.1.1
"composer/package-versions-deprecated": "^1.11" // 1.11.99
},
"require-dev": {
"sensio/generator-bundle": "^3.0", // v3.0.8
"symfony/phpunit-bridge": "^3.0", // v3.1.4
"doctrine/data-fixtures": "^1.1", // 1.3.3
"hautelook/alice-bundle": "^1.3" // v1.4.1
}
}
4 Comments
Hello,
My first message on the platform!
Thank you very much for the quality of your tutorials.
Despite my poor English proficiency, I can follow the courses.
Ansible does notice: [DEPRECATION WARNING]: evaluating repo_code.changed as a bare variable.
To solve this notification, just add a pipe bool (|bool) like this :
when: code_changed|boolCheers!
Hey Cédric,
Thank you for your feedback! That's great you can follow the videos and understand it. Btw, we also have English subtitles, you can enable them in the video player with "CC" button in case you don't know.
Also, thank you for mention this new deprecation, I added a note about it: https://github.com/knpunive...
Cheers!
I have noticed what I think is a bug. When you check if the repo has changed, I had to check for remote_url_changed however this only works after the repo has already been cloned once. The first time you run this against a new vagrant instance the remote_url_changed key does not exist.
Hey Simon,
Hm, interesting find! I agree, it's a bit weird. Well, maybe Ansible devs decided if that URL has not been set yet - then it wasn't changed for the first time or, probably, they just missed it. Anyway, I think you can open an issue in Ansible to discus this behavior, probably, you really found a bug.
Cheers!
"Houston: no signs of life"
Start the conversation!